Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple auditing, BSD's lrexec like
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
little-beastie
n00b
n00b


Joined: 25 Apr 2005
Posts: 10

PostPosted: Sun Oct 09, 2005 11:59 am    Post subject: Simple auditing, BSD's lrexec like Reply with quote

Hi
I need to have very simple execve audtiting. On FreeBSD I used lrexec module, which gives
log like:

Code:

Aug 27 02:06:29 sas lrexec: sh(/bin/sh) [login=sokra pid=41179 ruid=0 euid=0 groups=0,0,5] -> rm(/bin/rm) [args: "rm" "./COPYRIGHT"]
Aug 27 02:06:29 sas lrexec: sh(/bin/sh) [login=sokra pid=41180 ruid=0 euid=0 groups=0,0,5] -> find(/usr/bin/find) [args: "find" "/var/tmp/temproot" "-type" "f" "-size" "+0"]
Aug 27 02:06:34 sas lrexec: csh [login=sokra pid=41182 ruid=0 euid=0 groups=0,0,5] -> w(/usr/bin/w) [args: "w"]


I found snoopy which uses LD_PRELOAD but I'd prefer kernel module solution.
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Sun Oct 09, 2005 12:07 pm    Post subject: Reply with quote

At least grsecurity can give you this kind of information. grsecurity is included in hardened-sources. It's up to you decide if grsecurity is overkill for you.
_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum