diff options
author | Eric Paris <eparis@redhat.com> | 2013-04-30 18:43:10 +0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2013-04-30 23:31:28 +0400 |
commit | 2ce88dd04276839002a3b31161090d282316610b (patch) | |
tree | d327c9d66847d261bfdd1bebd853e9c368f36dab /drivers/tty/tty_audit.c | |
parent | 46e959ea2969cc1668d09b0dc55226946cf781f1 (diff) | |
download | linux-2ce88dd04276839002a3b31161090d282316610b.tar.xz |
audit: do not needlessly take a spinlock in copy_signal
current->signal->audit_* can only change from a netlink message from
current. Obviously in this case we cannot be handling a netlink message
from current. So there is no change these can change under us. No need
to take a lock to read them.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'drivers/tty/tty_audit.c')
-rw-r--r-- | drivers/tty/tty_audit.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/tty/tty_audit.c b/drivers/tty/tty_audit.c index 5f3868202183..a03a75163f02 100644 --- a/drivers/tty/tty_audit.c +++ b/drivers/tty/tty_audit.c @@ -134,12 +134,8 @@ void tty_audit_exit(void) */ void tty_audit_fork(struct signal_struct *sig) { - unsigned long flags; - - spin_lock_irqsave(¤t->sighand->siglock, flags); sig->audit_tty = current->signal->audit_tty; sig->audit_tty_log_passwd = current->signal->audit_tty_log_passwd; - spin_unlock_irqrestore(¤t->sighand->siglock, flags); } /** |