lkml.org 
[lkml]   [2015]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 2/2] audit,x86: add x32_execve[at] to syscall classification
Date
Treat x32 ABI variants of execve[at] the same as x86_64
variants.

Slightly speculative as the audit subsystem doesn't currently
work with x32 ABI syscalls. If and when audit+x32 does work,
this should correctly classify exec calls.

Signed-off-by: David Drysdale <drysdale@google.com>
---
arch/x86/kernel/audit_64.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/arch/x86/kernel/audit_64.c b/arch/x86/kernel/audit_64.c
index f3672508b249..0aec72d8d3c7 100644
--- a/arch/x86/kernel/audit_64.c
+++ b/arch/x86/kernel/audit_64.c
@@ -49,6 +49,12 @@ int audit_classify_syscall(int abi, unsigned syscall)
return 2;
case __NR_openat:
return 3;
+#ifdef __NR_x32_execve
+ case __NR_x32_execve:
+#endif
+#ifdef __NR_x32_execveat
+ case __NR_x32_execveat:
+#endif
case __NR_execve:
case __NR_execveat:
return 5;
--
1.9.1


\
 
 \ /
  Last update: 2015-03-06 17:01    [W:0.046 / U:1.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site