mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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>
This commit is contained in:
parent
46e959ea29
commit
2ce88dd042
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user