From 6e66ec3cae02952fcfc285cb156c11dcc61f4453 Mon Sep 17 00:00:00 2001 From: Steve Grubb Date: Thu, 12 Oct 2017 23:24:01 -0400 Subject: audit: Add new syscalls to the perm=w filter The audit subsystem allows selecting audit events based on watches for a particular behavior like writing to a file. A lot of syscalls have been added without updating the list. This patch adds 2 syscalls to the write filters: fallocate and renameat2. Signed-off-by: Steve Grubb Reviewed-by: Richard Guy Briggs [PM: cleaned up some whitespace errors] Signed-off-by: Paul Moore --- include/asm-generic/audit_write.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/asm-generic/audit_write.h') diff --git a/include/asm-generic/audit_write.h b/include/asm-generic/audit_write.h index 274575d7129f..f5c4906d24df 100644 --- a/include/asm-generic/audit_write.h +++ b/include/asm-generic/audit_write.h @@ -19,3 +19,6 @@ __NR_ftruncate64, #ifdef __NR_bind __NR_bind, /* bind can affect fs object only in one way... */ #endif +#ifdef __NR_fallocate +__NR_fallocate, +#endif -- cgit v1.2.3