]> git.baikalelectronics.ru Git - kernel.git/commit
audit: Simplify and correct audit_log_capset
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 19 Mar 2013 07:02:25 +0000 (00:02 -0700)
committerEric Paris <eparis@redhat.com>
Tue, 14 Jan 2014 03:26:48 +0000 (22:26 -0500)
commit491000b0f432a76fb622ef748cc759d0136b2213
tree9049f1e4911b21c181b3dcb435b5c75c8e18142c
parentebcf9a777299c447db8790f81929dfadd828869f
audit: Simplify and correct audit_log_capset

- Always report the current process as capset now always only works on
  the current process.  This prevents reporting 0 or a random pid in
  a random pid namespace.

- Don't bother to pass the pid as is available.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
(cherry picked from commit bcc85f0af31af123e32858069eb2ad8f39f90e67)
(cherry picked from commit f911cac4556a7a23e0b3ea850233d13b32328692)

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[eparis: fix build error when audit disabled]
Signed-off-by: Eric Paris <eparis@redhat.com>
include/linux/audit.h
kernel/auditsc.c
kernel/capability.c