Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 593
b: refs/heads/master
c: 79d20b1
h: refs/heads/master
i:
  591: 5e11813
v: v3
  • Loading branch information
Jeff Dike authored and David Woodhouse committed May 3, 2005
1 parent 42db79f commit 7823bf4
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 54e0f520e7d94b865e0f5465db976dcc5ffe7190
refs/heads/master: 79d20b14a0d651f15b0ef9a22b6cf12d284a6d38
21 changes: 12 additions & 9 deletions trunk/arch/um/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,18 @@ void syscall_trace(union uml_pt_regs *regs, int entryexit)

if (unlikely(current->audit_context)) {
if (!entryexit)
audit_syscall_entry(current,
UPT_SYSCALL_NR(&regs->regs),
UPT_SYSCALL_ARG1(&regs->regs),
UPT_SYSCALL_ARG2(&regs->regs),
UPT_SYSCALL_ARG3(&regs->regs),
UPT_SYSCALL_ARG4(&regs->regs));
else
audit_syscall_exit(current,
UPT_SYSCALL_RET(&regs->regs));
audit_syscall_entry(current,
HOST_AUDIT_ARCH,
UPT_SYSCALL_NR(regs),
UPT_SYSCALL_ARG1(regs),
UPT_SYSCALL_ARG2(regs),
UPT_SYSCALL_ARG3(regs),
UPT_SYSCALL_ARG4(regs));
else {
int res = UPT_SYSCALL_RET(regs);
audit_syscall_exit(current, AUDITSC_RESULT(res),
res);
}
}

/* Fake a debug trap */
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-um/ptrace-i386.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#ifndef __UM_PTRACE_I386_H
#define __UM_PTRACE_I386_H

#define HOST_AUDIT_ARCH AUDIT_ARCH_I386

#include "sysdep/ptrace.h"
#include "asm/ptrace-generic.h"

Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-um/ptrace-x86_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#include "asm/ptrace-generic.h"
#undef signal_fault

#define HOST_AUDIT_ARCH AUDIT_ARCH_X86_64

void signal_fault(struct pt_regs_subarch *regs, void *frame, char *where);

#define FS_BASE (21 * sizeof(unsigned long))
Expand Down
4 changes: 3 additions & 1 deletion trunk/include/asm-um/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ static inline struct thread_info *current_thread_info(void)
*/
#define TIF_RESTART_BLOCK 4
#define TIF_MEMDIE 5
#define TIF_SYSCALL_AUDIT 6

#define _TIF_SYSCALL_TRACE (1 << TIF_SYSCALL_TRACE)
#define _TIF_SIGPENDING (1 << TIF_SIGPENDING)
#define _TIF_NEED_RESCHED (1 << TIF_NEED_RESCHED)
#define _TIF_POLLING_NRFLAG (1 << TIF_POLLING_NRFLAG)
#define _TIF_RESTART_BLOCK (1 << TIF_RESTART_BLOCK)
#define _TIF_MEMDIE (1 << TIF_MEMDIE)
#define _TIF_SYSCALL_AUDIT (1 << TIF_SYSCALL_AUDIT)

#endif

Expand Down
2 changes: 1 addition & 1 deletion trunk/init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ config AUDIT

config AUDITSYSCALL
bool "Enable system-call auditing support"
depends on AUDIT && (X86 || PPC64 || ARCH_S390 || IA64)
depends on AUDIT && (X86 || PPC64 || ARCH_S390 || IA64 || UML)
default y if SECURITY_SELINUX
help
Enable low-overhead system-call auditing infrastructure that
Expand Down

0 comments on commit 7823bf4

Please sign in to comment.