On Wed, 2005-05-25 at 16:59 +0100, David Woodhouse wrote:
What I'm doing with it _is_ a bit dirty. Looks something like
this.
It compiles but I haven't tested it yet or even really done a second
read through the code
Seems to work OK if I also do this...
--- linux-2.6.9/kernel/audit.c~ 2005-05-26 11:25:59.000000000 +0100
+++ linux-2.6.9/kernel/audit.c 2005-05-26 12:25:41.000000000 +0100
@@ -544,7 +544,6 @@ int __init audit_init(void)
audit_sock->sk_sndtimeo = MAX_SCHEDULE_TIMEOUT;
skb_queue_head_init(&audit_skb_queue);
audit_initialized = 1;
- audit_filesystem_init();
audit_enabled = audit_default;
audit_log(NULL, AUDIT_KERNEL, "initialized");
return 0;
--- linux-2.6.9/fs/inode.c~ 2005-05-26 11:25:59.000000000 +0100
+++ linux-2.6.9/fs/inode.c 2005-05-26 12:26:29.000000000 +0100
@@ -1379,6 +1379,7 @@ void __init inode_init(unsigned long mem
inode_cachep = kmem_cache_create("inode_cache", sizeof(struct inode),
0, SLAB_PANIC, init_once, NULL);
set_shrinker(DEFAULT_SEEKS, shrink_icache_memory);
+ audit_filesystem_init();
}
void init_special_inode(struct inode *inode, umode_t mode, dev_t rdev)
--
dwmw2