public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* [PATCH 0/2] Syscall auditing lite
@ 2014-05-30 21:58 Andy Lutomirski
  2014-05-30 21:58 ` [PATCH 1/2] x86,syscall: Add syscall_in_syscall to test whether we're in a syscall Andy Lutomirski
  2014-05-30 21:58 ` [PATCH 2/2] audit: Syscall auditing lite Andy Lutomirski
  0 siblings, 2 replies; 4+ messages in thread
From: Andy Lutomirski @ 2014-05-30 21:58 UTC (permalink / raw)
  To: x86, linux-kernel, linux-audit, Steve Grubb, Eric Paris,
	H. Peter Anvin
  Cc: Andy Lutomirski

I've made no secret of the fact that I dislike syscall auditing.  As far
as I can tell, the main technical (i.e. not compliance-related) use of
syscall auditing is to supply some useful context information to go
along with events like AVC denials.

CONFIG_AUDITSYSCALL is serious overkill to do this.  kernel/auditsc.c is
~2500 lines of terror.

This patchset accomplishes the same goal, more usefully, with no
overhead at all, in under 70 lines of code.  It tries to coexist cleanly
with CONFIG_AUDITSYSCALL.

This is only implemented for x86.  Other architectures can add support
fairly easily, I think.

Andy Lutomirski (2):
  x86,syscall: Add syscall_in_syscall to test whether we're in a syscall
  audit: Syscall auditing lite

 arch/x86/Kconfig               |  1 +
 arch/x86/include/asm/syscall.h | 21 ++++++++++++++++++++
 init/Kconfig                   |  3 +++
 kernel/audit.c                 | 44 +++++++++++++++++++++++++++++++++++++++++-
 4 files changed, 68 insertions(+), 1 deletion(-)

-- 
1.9.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-02 17:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-30 21:58 [PATCH 0/2] Syscall auditing lite Andy Lutomirski
2014-05-30 21:58 ` [PATCH 1/2] x86,syscall: Add syscall_in_syscall to test whether we're in a syscall Andy Lutomirski
2014-06-02 17:09   ` Andy Lutomirski
2014-05-30 21:58 ` [PATCH 2/2] audit: Syscall auditing lite Andy Lutomirski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox