/* Set up TTY audit state in @sig from current. @sig needs no locking.  */
void tty_audit_fork(struct signal_struct *sig)
/* Set up TTY audit state in @sig from current. @sig needs no locking.  */
void tty_audit_fork(struct signal_struct *sig)
{
	spin_lock_irq(&current->sighand->siglock);
	sig->audit_tty = current->signal->audit_tty;
	spin_unlock_irq(&current->sighand->siglock);
	sig->tty_audit_buf = NULL;
}