How do I enable EXT3 security logging?

How do I enable EXT3 security logging?

Post by Stephen Loeck » Thu, 05 Dec 2002 00:26:43



I want to be able to log when someone tries to access a file and is
denied access. How do I do this? I've been searching the newsgroups
for hours.

Thanks!
Stephen

 
 
 

1. enable direct-to-BIO readahead for ext3

Turn on multipage no-buffers reads for ext3.

=====================================

--- 2.5.18/fs/ext3/inode.c~ext3-mpage-read      Sun May 26 12:37:52 2002

 #include <linux/quotaops.h>
 #include <linux/string.h>
 #include <linux/buffer_head.h>
+#include <linux/mpage.h>

 /*

 static int ext3_readpage(struct file *file, struct page *page)
 {
-       return block_read_full_page(page,ext3_get_block);
+       return mpage_readpage(page, ext3_get_block);
 }

+static int
+ext3_readpages(struct address_space *mapping,
+               struct list_head *pages, unsigned nr_pages)
+{
+       return mpage_readpages(mapping, pages, nr_pages, ext3_get_block);
+}

 static int ext3_flushpage(struct page *page, unsigned long offset)

 struct address_space_operations ext3_aops = {
        readpage:       ext3_readpage,          /* BKL not held.  Don't need */
+       readpages:      ext3_readpages,         /* BKL not held.  Don't need */
        writepage:      ext3_writepage,         /* BKL not held.  We take it */
        sync_page:      block_sync_page,
        prepare_write:  ext3_prepare_write,     /* BKL not held.  We take it */

-
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Choosing runlevel at boot with graphical lilo.

3. ext3 xattr handler for security modules against 2.5.68

4. linux search engine on apache server

5. 2.4.20-pre4/ext3: ext3 misc updates

6. /usr/sbin/quota runs slow on solaris 7

7. Numbers: ext2/ext3/reiser Performance (ext3 is slow)

8. Where is my printer port?

9. ext3 and filename globbing with ext3

10. 2.4.20-pre4/ext3: ext3 dirty buffer management

11. 2.4.20-pre4/ext3: ext3 minor improvements

12. 2.4.20-pre4/ext3: Bump ext3 version number

13. 2.4.20-pre4/ext3: Sanity check for Intermezzo/ext3 interactions