From: Richard Guy Briggs Date: Fri, 3 May 2013 18:03:49 +0000 (-0400) Subject: audit: use given values in tty_audit enable api X-Git-Tag: accepted/tizen/common/20141203.182822~221^2~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b95d77fe341b9c9641addb326cf43c30d1ba23b8;p=platform%2Fkernel%2Flinux-arm64.git 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 Signed-off-by: Eric Paris --- diff --git a/kernel/audit.c b/kernel/audit.c index 3ad14e6..6161640 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);