audit: Add new syscalls to the perm=w filter
authorSteve Grubb <sgrubb@redhat.com>
Fri, 13 Oct 2017 03:24:01 +0000 (23:24 -0400)
committerPaul Moore <paul@paul-moore.com>
Fri, 10 Nov 2017 21:08:28 +0000 (16:08 -0500)
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 <sgrubb@redhat.com>
Reviewed-by: Richard Guy Briggs <rgb@redhat.com>
[PM: cleaned up some whitespace errors]
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/asm-generic/audit_dir_write.h
include/asm-generic/audit_write.h

index 7b61db4..cf1ebc3 100644 (file)
@@ -30,3 +30,6 @@ __NR_renameat,
 __NR_linkat,
 __NR_symlinkat,
 #endif
+#ifdef __NR_renameat2
+__NR_renameat2,
+#endif
index 274575d..f5c4906 100644 (file)
@@ -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