]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
audit: add missing syscalls to read class
authorJeffrey Bencteux <jeff@bencteux.fr>
Sat, 27 Dec 2025 08:39:24 +0000 (09:39 +0100)
committerPaul Moore <paul@paul-moore.com>
Tue, 6 Jan 2026 21:42:29 +0000 (16:42 -0500)
The "at" variant of getxattr() and listxattr() are missing from the
audit read class. Calling getxattrat() or listxattrat() on a file to
read its extended attributes will bypass audit rules such as:

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

The current patch adds missing syscalls to the audit read class.

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

index 7bb7b5a83ae2e549c151112a75c0f8da4f4995d0..fb9991f53fb6f92212c1ad80b858736bbb91797f 100644 (file)
@@ -4,9 +4,15 @@ __NR_readlink,
 #endif
 __NR_quotactl,
 __NR_listxattr,
+#ifdef __NR_listxattrat
+__NR_listxattrat,
+#endif
 __NR_llistxattr,
 __NR_flistxattr,
 __NR_getxattr,
+#ifdef __NR_getxattrat
+__NR_getxattrat,
+#endif
 __NR_lgetxattr,
 __NR_fgetxattr,
 #ifdef __NR_readlinkat