]> git.baikalelectronics.ru Git - kernel.git/commit
audit: link integrity evm_write_xattrs record to syscall event
authorRichard Guy Briggs <rgb@redhat.com>
Tue, 26 Mar 2019 18:49:20 +0000 (14:49 -0400)
committerPaul Moore <paul@paul-moore.com>
Wed, 27 Mar 2019 22:11:52 +0000 (18:11 -0400)
commitddade72be8463d01aafd119b32310e74f8d3a6ac
treee313baf2bfba83b688c3c75522db2a42ad4fa753
parent1d97821159998a3e89dd221967e96181a0f4af8e
audit: link integrity evm_write_xattrs record to syscall event

In commit 9b02ec7cb5b8 ("EVM: Allow runtime modification of the set of
verified xattrs"), the call to audit_log_start() is missing a context to
link it to an audit event. Since this event is in user context, add
the process' syscall context to the record.

In addition, the orphaned keyword "locked" appears in the record.
Normalize this by changing it to logging the locking string "." as any
other user input in the "xattr=" field.

Please see the github issue
https://github.com/linux-audit/audit-kernel/issues/109

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Acked-by: Mimi Zohar <zohar@linux.ibm.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/integrity/evm/evm_secfs.c