From: Zhenwen Xu <helight.xu@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: viro@zeniv.linux.org.uk, eparis@redhat.com
Subject: [PATCH] remove function audit_receive_filter here in kerenl/audit.c
Date: Thu, 21 May 2009 10:31:11 +0800 [thread overview]
Message-ID: <20090521023111.GA4863@helight> (raw)
both case AUDIT_LIST: and case AUDIT_LIST_RULES: call this function
audit_receive_filter in the same way, so I think we can put them together
by removing another one.
Signed-off-by: Zhenwen Xu <helight.xu@gmail.com>
---
kernel/audit.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
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 */
- 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();
--
1.5.6.5
--
--------------------------------
http://zhwen.org - Open and Free
next reply other threads:[~2009-05-21 2:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-21 2:31 Zhenwen Xu [this message]
2009-05-21 3:06 ` [PATCH] remove function audit_receive_filter here in kerenl/audit.c Li Zefan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090521023111.GA4863@helight \
--to=helight.xu@gmail.com \
--cc=eparis@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox