aboutsummaryrefslogtreecommitdiffstats
path: root/lib/audit.c
diff options
context:
space:
mode:
authorRichard Guy Briggs <rgb@redhat.com>2021-05-19 16:00:21 -0400
committerPaul Moore <paul@paul-moore.com>2021-10-01 16:52:48 -0400
commit1c30e3af8a79260cdba833a719209b01e6b92300 (patch)
tree3790801dacb2dd792296b8d73d637d8afde71a9d /lib/audit.c
parentaudit: replace magic audit syscall class numbers with macros (diff)
downloadlinux-dev-1c30e3af8a79260cdba833a719209b01e6b92300.tar.xz
linux-dev-1c30e3af8a79260cdba833a719209b01e6b92300.zip
audit: add support for the openat2 syscall
The openat2(2) syscall was added in kernel v5.6 with commit fddb5d430ad9 ("open: introduce openat2(2) syscall"). Add the openat2(2) syscall to the audit syscall classifier. Link: https://github.com/linux-audit/audit-kernel/issues/67 Link: https://lore.kernel.org/r/f5f1a4d8699613f8c02ce762807228c841c2e26f.1621363275.git.rgb@redhat.com Signed-off-by: Richard Guy Briggs <rgb@redhat.com> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> [PM: merge fuzz due to previous header rename, commit line wraps] Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'lib/audit.c')
-rw-r--r--lib/audit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/audit.c b/lib/audit.c
index 3ec1a94d8d64..738bda22dd39 100644
--- a/lib/audit.c
+++ b/lib/audit.c
@@ -60,6 +60,10 @@ int audit_classify_syscall(int abi, unsigned syscall)
#endif
case __NR_execve:
return AUDITSC_EXECVE;
+#ifdef __NR_openat2
+ case __NR_openat2:
+ return AUDITSC_OPENAT2;
+#endif
default:
return AUDITSC_NATIVE;
}