]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit365c2d0993e368f00b4c941be00ef9c119754abe
treec5d29fa6d7f7198d9500a7b78066c13b5cd77705
parenta4abf4d8c18eba92e50384af2f4a14c8deb2e071
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