]> git.ipfire.org Git - thirdparty/linux.git/commit
audit: add fchmodat2() to change attributes class
authorJeffrey Bencteux <jeff@bencteux.fr>
Mon, 24 Nov 2025 19:49:30 +0000 (20:49 +0100)
committerPaul Moore <paul@paul-moore.com>
Mon, 15 Dec 2025 19:27:18 +0000 (14:27 -0500)
commit4f493a6079b588cf1f04ce5ed6cdad45ab0d53dc
tree9691791fc05eab8ec6675d30d996a3e747a0eab2
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
audit: add fchmodat2() to change attributes class

fchmodat2(), introduced in version 6.6 is currently not in the change
attribute class of audit. Calling fchmodat2() to change a file
attribute in the same fashion than chmod() or fchmodat() will bypass
audit rules such as:

-w /tmp/test -p rwa -k test_rwa

The current patch adds fchmodat2() to the change attributes class.

Signed-off-by: Jeffrey Bencteux <jeff@bencteux.fr>
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/asm-generic/audit_change_attr.h