audit: use given values in tty_audit enable api
authorRichard Guy Briggs <rgb@redhat.com>
Fri, 3 May 2013 18:03:49 +0000 (14:03 -0400)
committerEric Paris <eparis@redhat.com>
Tue, 5 Nov 2013 16:08:42 +0000 (11:08 -0500)
In send/GET, we don't want the kernel to lie about what value is set.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
kernel/audit.c

index 3ad14e6e00bde5f53d067656e93cc86b4d3ea665..616164038ad4aa50e01aa5b8247b065da82efbe6 100644 (file)
@@ -930,7 +930,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
                struct task_struct *tsk = current;
 
                spin_lock(&tsk->sighand->siglock);
-               s.enabled = tsk->signal->audit_tty != 0;
+               s.enabled = tsk->signal->audit_tty;
                s.log_passwd = tsk->signal->audit_tty_log_passwd;
                spin_unlock(&tsk->sighand->siglock);