tty: audit: Handle tty audit enable atomically
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 06:55:33 +0000 (22:55 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jan 2016 00:41:04 +0000 (16:41 -0800)
commit2e28d38ae1d9ced6ac2deb4001aca3f267304cdb
treec5d29fa6d7f7198d9500a7b78066c13b5cd77705
parent4d240b6442824df3b5e401459789bab5ee7777ae
tty: audit: Handle tty audit enable atomically

The audit_tty and audit_tty_log_passwd fields are actually bool
values, so merge into single memory location to access atomically.

NB: audit log operations may still occur after tty audit is disabled
which is consistent with the existing functionality

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_audit.c
include/linux/audit.h
include/linux/sched.h
kernel/audit.c