]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] make set_loginuid obey audit_enabled
authorSteve Grubb <sgrubb@redhat.com>
Mon, 12 Jun 2006 11:48:28 +0000 (07:48 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 20 Jun 2006 09:25:29 +0000 (05:25 -0400)
commitc22d8fd677b5bf1d903c2a5026f8d175d31f5e20
tree6feff3fade7d842e58d535eef4f397ebfb8ae19e
parente7a252eb65dcf86e283f23f52052643888c4a0a2
[PATCH] make set_loginuid obey audit_enabled

Hi,

I was doing some testing and noticed that when the audit system was disabled,
I was still getting messages about the loginuid being set. The following patch
makes audit_set_loginuid look at in_syscall to determine if it should create
an audit event. The loginuid will continue to be set as long as there is a context.

Signed-off-by: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
kernel/auditsc.c