summaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2013-05-03 14:03:49 -0400
committerEric Paris <eparis@redhat.com>2013-11-05 11:08:42 -0500
commitb95d77fe341b9c9641addb326cf43c30d1ba23b8 (patch)
tree615f0bdd77a76d5eeef601a349389bc0bc360ab4 /kernel/audit.c
parent4d8fe7376a12bf4524783dd95cbc00f1fece6232 (diff)
downloadlinux-b95d77fe341b9c9641addb326cf43c30d1ba23b8.tar.bz2
audit: use given values in tty_audit enable api
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>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index 3ad14e6e00bd..616164038ad4 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -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);