ArchiveOrangemail archive

opensuse-kernel.opensuse.org


(List home) (Recent threads) (97 other OpenSUSE lists)

Subscription Options

  • RSS or Atom: Read-only subscription using a browser or aggregator. This is the recommended way if you don't need to send messages to the list. You can learn more about feed syndication and clients here.
  • Conventional: All messages are delivered to your mail address, and you can reply. To subscribe, send an email to the list's subscribe address with "subscribe" in the subject line, or visit the list's homepage here.
  • Low traffic list: less than 3 messages per day
  • This list contains about 4,659 messages, beginning Aug 2007
  • 0 messages added yesterday
Report the Spam
This button sends a spam report to the moderator. Please use it sparingly. For other removal requests, read this.
Are you sure? yes no

[Fwd: [fedora-arm] Fwd: [PATCH 2/2] ARM: audit: use only AUDIT_ARCH_ARM regardless of endianness]

Ad
Andrew Wafaa 1336164699Fri, 04 May 2012 20:51:39 +0000 (UTC)
Could we also get this applied to our kernels, please?

-------- Forwarded Message --------
From: Jon Masters 
To: arm , 
Subject: [fedora-arm] Fwd: [PATCH 2/2] ARM: audit: use only
AUDIT_ARCH_ARM regardless of endianness
Date: Fri, 04 May 2012 13:24:34 -0400

Please apply to our Fedora kernels.

-------- Original Message --------
Subject: [PATCH 2/2] ARM: audit: use only AUDIT_ARCH_ARM regardless of
endianness
Date: Fri,  4 May 2012 17:53:52 +0100
From: Will Deacon 
To: 
CC: 

The machine endianness has no direct correspondence to the syscall ABI,
so use only AUDIT_ARCH_ARM when identifying the ABI to the audit tools
in userspace.

Cc: 
Signed-off-by: Will Deacon 

KernelVersion: 3.4-rc5
---
 arch/arm/kernel/ptrace.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
index d8dbe9c..9650c14 100644
--- a/arch/arm/kernel/ptrace.c
+++ b/arch/arm/kernel/ptrace.c
@@ -906,12 +906,6 @@ long arch_ptrace(struct task_struct *child, long
request,
 	return ret;
 }

-#ifdef __ARMEB__
-#define AUDIT_ARCH_NR AUDIT_ARCH_ARMEB
-#else
-#define AUDIT_ARCH_NR AUDIT_ARCH_ARM
-#endif
-
 asmlinkage int syscall_trace(int why, struct pt_regs *regs, int scno)
 {
 	unsigned long ip;
@@ -919,7 +913,7 @@ asmlinkage int syscall_trace(int why, struct pt_regs
*regs, int scno)
 	if (why)
 		audit_syscall_exit(regs);
 	else
-		audit_syscall_entry(AUDIT_ARCH_NR, scno, regs->ARM_r0,
+		audit_syscall_entry(AUDIT_ARCH_ARM, scno, regs->ARM_r0,
 				    regs->ARM_r1, regs->ARM_r2, regs->ARM_r3);

 	if (!test_thread_flag(TIF_SYSCALL_TRACE))
-- 
1.7.4.1

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to 
More majordomo info at  http://vger.kernel.org/majordomo-info.html_______________________________________________
arm mailing list

https://admin.fedoraproject.org/mailman/listi...
Home | About | Privacy