mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
4d240b6442
commit
2e28d38ae1
4 changed files with 38 additions and 45 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue