lkml.org 
[lkml]   [2009]   [May]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] remove function audit_receive_filter here in kerenl/audit.c
> diff --git a/kernel/audit.c b/kernel/audit.c
> index 9442c35..40fc803 100644
> --- a/kernel/audit.c
> +++ b/kernel/audit.c
> @@ -790,6 +790,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
> }
> /* fallthrough */
> case AUDIT_LIST:
> + case AUDIT_LIST_RULES:
> err = audit_receive_filter(msg_type, NETLINK_CB(skb).pid,
> uid, seq, data, nlmsg_len(nlh),
> loginuid, sessionid, sid);
> @@ -807,12 +808,6 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
> audit_log_end(ab);
> return -EPERM;
> }
> - /* fallthrough */

This patch is obviously wrong.

> - case AUDIT_LIST_RULES:
> - err = audit_receive_filter(msg_type, NETLINK_CB(skb).pid,
> - uid, seq, data, nlmsg_len(nlh),
> - loginuid, sessionid, sid);
> - break;
> case AUDIT_TRIM:
> audit_trim_trees();
>



\
 
 \ /
  Last update: 2009-05-21 05:09    [W:0.030 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site