aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2012-09-11 03:12:29 -0400
committerEric W. Biederman <ebiederm@xmission.com>2012-09-17 21:06:14 -0400
commit35ce9888ad2a60c95849551e7345bd547714bbff (patch)
treefe2b6e151fc9a735faebe05a57506295becfddf2 /kernel
parent8aa14b64981ee4b95959e1ed331b672d053aab62 (diff)
audit: Properly set the origin port id of audit messages.
For user generated audit messages set the portid field in the netlink header to the netlink port where the user generated audit message came from. Reporting the process id in a port id field was just nonsense. Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Eric Paris <eparis@redhat.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 2a8728fdefc4..9dd4d0936969 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -751,7 +751,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
751 size--; 751 size--;
752 audit_log_n_untrustedstring(ab, data, size); 752 audit_log_n_untrustedstring(ab, data, size);
753 } 753 }
754 audit_set_pid(ab, pid); 754 audit_set_pid(ab, NETLINK_CB(skb).pid);
755 audit_log_end(ab); 755 audit_log_end(ab);
756 } 756 }
757 break; 757 break;