mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
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>
This commit is contained in:
parent
8f0b4cce44
commit
4f493a6079
1 changed files with 3 additions and 0 deletions
|
|
@ -26,6 +26,9 @@ __NR_fremovexattr,
|
|||
__NR_fchownat,
|
||||
__NR_fchmodat,
|
||||
#endif
|
||||
#ifdef __NR_fchmodat2
|
||||
__NR_fchmodat2,
|
||||
#endif
|
||||
#ifdef __NR_chown32
|
||||
__NR_chown32,
|
||||
__NR_fchown32,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue