diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2013-05-03 20:03:49 +0200 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2013-11-05 17:08:42 +0100 |
commit | b95d77fe341b9c9641addb326cf43c30d1ba23b8 (patch) | |
tree | 615f0bdd77a76d5eeef601a349389bc0bc360ab4 /kernel/audit.c | |
parent | audit: use nlmsg_len() to get message payload length (diff) | |
download | linux-b95d77fe341b9c9641addb326cf43c30d1ba23b8.tar.xz linux-b95d77fe341b9c9641addb326cf43c30d1ba23b8.zip |
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.c | 2 |
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); |