Secure Deletion and Trash-Bin Support for Ext4
PATCH 3/5 Secure Deletion and Trash-Bin Support for Ext4
Trash-Bin Functionality for the ext3 filesystem:
Signed-off-by Harry Papaxenopoulos <[email protected]>
Signed-off-by Nikolai Joukov <[email protected]>
Signed-off-by Erez Zadok <[email protected]>
src/linux-2.6.20-rc6-trashbin/fs/ext3/super.c +6 -0
@@ -35,6 +35,7 @@#include <linux/namei.h> #include <linux/quotaops.h> #include <linux/seq_file.h> +#include <linux/trashbin.h> #include <asm/uaccess.h>
@@ -1773,6 +1774,11 @@ static int ext3_fill_super (struct super goto failed_mount4; } +#ifdef CONFIG_EXT3_FS_TRASHBIN +if ((sb->s_flags &MNT_TRASHBIN ) &&vfs_create_trash_bin (sb)) + goto failed_mount4; +#endif +ext3_setup_super (sb, es, sb->s_flags &MS_RDONLY );/* * akpm: core read_super() calls in here with the superblock locked.
src/linux-2.6.20-rc6-trashbin/fs/ext3/namei.c +40 -2
71 lines not on this page · raw message
src/linux-2.6.20-rc6-trashbin/fs/Kconfig +9 -0
@@ -153,6 +153,15 @@ config EXT3_FS_SECURITY If you are not using a security module that requires using extended attributes for file security labels, say N. +config EXT3_FS_TRASHBIN + bool "Ext3 trashbin functionality" + depends on TRASHBIN + depends on EXT3_FS + help + Trashbin functionality for the ext3 filesystem + + If unsure, say N. + config EXT4DEV_FS tristate "Ext4dev/ext4 extended fs support development (EXPERIMENTAL)" depends on EXPERIMENTAL