[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1425656438-3884-3-git-send-email-drysdale@google.com>
Date: Fri, 6 Mar 2015 15:40:38 +0000
From: David Drysdale <drysdale@...gle.com>
To: Brian Gerst <brgerst@...il.com>, Ingo Molnar <mingo@...nel.org>
Cc: "H. Peter Anvin" <hpa@...or.com>,
AKASHI Takahiro <takahiro.akashi@...aro.org>,
Richard Guy Briggs <rgb@...hat.com>,
Eric Paris <eparis@...hat.com>,
Paul Moore <paul@...l-moore.com>, stable@...r.kernel.org,
linux-audit@...hat.com, linux-kernel@...r.kernel.org,
David Drysdale <drysdale@...gle.com>
Subject: [PATCH 2/2] audit,x86: add x32_execve[at] to syscall classification
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@...gle.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists