audit: don't generate loginuid log when audit disabled
authorGao feng <gaofeng@cn.fujitsu.com>
Fri, 1 Nov 2013 11:34:45 +0000 (19:34 +0800)
committerEric Paris <eparis@redhat.com>
Tue, 14 Jan 2014 03:30:25 +0000 (22:30 -0500)
commitc2412d91c68426e22add16550f97ae5cd988a159
tree5c426fbdfe792c6d4435a20e925b15456d77ee08
parent4547b3bc43c64389ca4368be0edf1f90ae1b938d
audit: don't generate loginuid log when audit disabled

If audit is disabled, we shouldn't generate loginuid audit
log.

Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
kernel/auditsc.c