audit: Remove the unused uid parameter from audit_receive_filter
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 11 Sep 2012 07:19:06 +0000 (00:19 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 18 Sep 2012 01:07:07 +0000 (18:07 -0700)
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Paris <eparis@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/audit.h
kernel/audit.c
kernel/auditfilter.c

index 9c9af0e95f933b918dd5f373290cfc584766a5a9..b9c5b22e34a5ff1e15b4059de1e14d58a82b5982 100644 (file)
@@ -702,7 +702,7 @@ extern int              audit_update_lsm_rules(void);
                                /* Private API (for audit.c only) */
 extern int audit_filter_user(void);
 extern int audit_filter_type(int type);
-extern int  audit_receive_filter(int type, int pid, int uid, int seq,
+extern int  audit_receive_filter(int type, int pid, int seq,
                                void *data, size_t datasz, uid_t loginuid,
                                u32 sessionid, u32 sid);
 extern int audit_enabled;
index 9dd4d0936969fae90108598b322fcc7c87bc5013..a31e31bba2d373e44e18cd452b6dc49429c67d80 100644 (file)
@@ -771,7 +771,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
                /* fallthrough */
        case AUDIT_LIST:
                err = audit_receive_filter(msg_type, NETLINK_CB(skb).pid,
-                                          uid, seq, data, nlmsg_len(nlh),
+                                          seq, data, nlmsg_len(nlh),
                                           loginuid, sessionid, sid);
                break;
        case AUDIT_ADD_RULE:
@@ -790,7 +790,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
                /* fallthrough */
        case AUDIT_LIST_RULES:
                err = audit_receive_filter(msg_type, NETLINK_CB(skb).pid,
-                                          uid, seq, data, nlmsg_len(nlh),
+                                          seq, data, nlmsg_len(nlh),
                                           loginuid, sessionid, sid);
                break;
        case AUDIT_TRIM:
index b754f43bc56c03c0ca4710aa6478e9d1f7f47ade..e242dd9aa2d0c67c8f7bf7690b56c6861a4dd21e 100644 (file)
@@ -1098,7 +1098,7 @@ static void audit_log_rule_change(uid_t loginuid, u32 sessionid, u32 sid,
  * @sessionid: sessionid for netlink audit message
  * @sid: SE Linux Security ID of sender
  */
-int audit_receive_filter(int type, int pid, int uid, int seq, void *data,
+int audit_receive_filter(int type, int pid, int seq, void *data,
                         size_t datasz, uid_t loginuid, u32 sessionid, u32 sid)
 {
        struct task_struct *tsk;