Amy Griffis
9c937dcc71
[PATCH] log more info for directory entry change events
...
When an audit event involves changes to a directory entry, include
a PATH record for the directory itself. A few other notable changes:
- fixed audit_inode_child() hooks in fsnotify_move()
- removed unused flags arg from audit_inode()
- added audit log routines for logging a portion of a string
Here's some sample output.
before patch:
type=SYSCALL msg=audit(1149821605.320:26): arch=40000003 syscall=39 success=yes exit=0 a0=bf8d3c7c a1=1ff a2=804e1b8 a3=bf8d3c7c items=1 ppid=739 pid=800 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttyS0 comm="mkdir" exe="/bin/mkdir" subj=root:system_r:unconfined_t:s0-s0:c0.c255
type=CWD msg=audit(1149821605.320:26): cwd="/root"
type=PATH msg=audit(1149821605.320:26): item=0 name="foo" parent=164068 inode=164010 dev=03:00 mode=040755 ouid=0 ogid=0 rdev=00:00 obj=root:object_r:user_home_t:s0
after patch:
type=SYSCALL msg=audit(1149822032.332:24): arch=40000003 syscall=39 success=yes exit=0 a0=bfdd9c7c a1=1ff a2=804e1b8 a3=bfdd9c7c items=2 ppid=714 pid=777 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttyS0 comm="mkdir" exe="/bin/mkdir" subj=root:system_r:unconfined_t:s0-s0:c0.c255
type=CWD msg=audit(1149822032.332:24): cwd="/root"
type=PATH msg=audit(1149822032.332:24): item=0 name="/root" inode=164068 dev=03:00 mode=040750 ouid=0 ogid=0 rdev=00:00 obj=root:object_r:user_home_dir_t:s0
type=PATH msg=audit(1149822032.332:24): item=1 name="foo" inode=164010 dev=03:00 mode=040755 ouid=0 ogid=0 rdev=00:00 obj=root:object_r:user_home_t:s0
Signed-off-by: Amy Griffis <amy.griffis@hp.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2006-06-20 05:25:28 -04:00
..
2006-04-28 08:33:46 -07:00
2006-04-28 08:33:46 -07:00
2006-01-03 11:35:26 +01:00
2006-03-31 12:18:54 -08:00
2006-06-20 05:25:28 -04:00
2006-06-20 05:25:28 -04:00
2006-06-20 05:25:28 -04:00
2006-06-20 05:25:28 -04:00
2006-03-25 08:22:56 -08:00
2006-03-27 08:44:49 -08:00
2006-01-03 13:37:51 +01:00
2006-03-27 08:44:50 -08:00
2006-05-21 12:59:18 -07:00
2005-04-16 15:20:36 -07:00
2006-03-24 07:33:30 -08:00
2006-06-17 10:52:13 -07:00
2006-05-15 11:20:55 -07:00
2006-05-01 06:06:13 -04:00
2006-03-31 12:18:59 -08:00
2006-03-31 12:18:59 -08:00
2006-05-31 16:27:11 -07:00
2006-02-05 11:06:52 -08:00
2006-03-26 08:57:03 -08:00
2005-10-30 17:37:32 -08:00
2005-06-23 09:45:10 -07:00
2005-06-25 16:24:45 -07:00
2006-01-11 18:42:13 -08:00
2005-10-08 15:00:57 -07:00
2006-03-28 18:36:41 -08:00
2006-04-20 07:54:03 -07:00
2006-03-24 07:33:31 -08:00
2006-03-25 08:22:57 -08:00
2006-03-27 08:44:49 -08:00
2006-05-15 11:20:55 -07:00
2006-01-11 08:14:16 -08:00
2006-01-09 15:59:20 -08:00
2006-01-10 14:27:59 -08:00
2006-01-09 15:59:19 -08:00
2006-04-11 06:18:40 -07:00
2006-03-28 09:16:03 -08:00
2006-03-31 12:19:00 -08:00
2006-06-17 10:52:13 -07:00
2006-03-26 08:57:03 -08:00
2006-04-01 01:21:17 +02:00
2006-04-26 08:30:03 -07:00
2006-05-11 11:08:49 -07:00
2006-05-15 11:20:55 -07:00
2006-03-28 09:16:05 -08:00
2006-03-23 19:58:45 +01:00
2006-01-10 08:02:02 -08:00
2006-05-21 18:54:09 -07:00
2005-04-16 15:20:36 -07:00
2006-06-20 05:25:21 -04:00
2006-04-26 08:30:03 -07:00
2006-04-26 08:30:03 -07:00
2006-03-23 07:38:16 -08:00
2006-01-10 08:01:25 -08:00
2006-04-11 06:18:33 -07:00
2006-03-31 12:18:59 -08:00
2006-06-20 05:25:17 -04:00
2006-04-01 01:41:22 +02:00
2006-05-21 12:59:21 -07:00
2006-04-19 16:27:18 -07:00
2006-06-20 05:25:17 -04:00
2005-04-16 15:20:36 -07:00
2006-04-26 08:30:03 -07:00