OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d8fe73
)
audit: use given values in tty_audit enable api
author
Richard Guy Briggs
<rgb@redhat.com>
Fri, 3 May 2013 18:03:49 +0000
(14:03 -0400)
committer
Eric 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
patch
|
blob
|
history
diff --git
a/kernel/audit.c
b/kernel/audit.c
index
3ad14e6
..
6161640
100644
(file)
--- 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);