diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2016-01-09 22:55:33 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-27 16:41:04 -0800 |
commit | 2e28d38ae1d9ced6ac2deb4001aca3f267304cdb (patch) | |
tree | c5d29fa6d7f7198d9500a7b78066c13b5cd77705 /include/linux/audit.h | |
parent | 4d240b6442824df3b5e401459789bab5ee7777ae (diff) | |
download | linux-stable-2e28d38ae1d9ced6ac2deb4001aca3f267304cdb.tar.gz linux-stable-2e28d38ae1d9ced6ac2deb4001aca3f267304cdb.tar.bz2 linux-stable-2e28d38ae1d9ced6ac2deb4001aca3f267304cdb.zip |
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>
Diffstat (limited to 'include/linux/audit.h')
-rw-r--r-- | include/linux/audit.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index b40ed5df5542..e38e3fc13ea8 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h @@ -109,6 +109,10 @@ extern int audit_classify_compat_syscall(int abi, unsigned syscall); /* maximized args number that audit_socketcall can process */ #define AUDITSC_ARGS 6 +/* bit values for ->signal->audit_tty */ +#define AUDIT_TTY_ENABLE BIT(0) +#define AUDIT_TTY_LOG_PASSWD BIT(1) + struct filename; extern void audit_log_session_info(struct audit_buffer *ab); |