lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri,  7 Oct 2011 00:11:04 -0700
From:	Allison Henderson <achender@...ux.vnet.ibm.com>
To:	linux-ext4@...r.kernel.org, linux-fsdevel@...r.kernel.org
Cc:	Allison Henderson <achender@...ux.vnet.ibm.com>
Subject: [Ext4 Secure Delete 6/7v4] ext4: Secure Delete: Secure delete meta data blocks

This patch modifies ext4_free_blocks to securely delete meta blocks
when needed

Signed-off-by: Allison Henderson <achender@...ux.vnet.ibm.com>
---
:100644 100644 17a5a57... d25bb4d... M	fs/ext4/mballoc.c
 fs/ext4/mballoc.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 17a5a57..d25bb4d 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -4607,6 +4607,14 @@ do_more:
 	if (err)
 		goto error_return;
 
+	if ((flags & EXT4_FREE_BLOCKS_METADATA) &&
+		EXT4_I(inode)->i_flags & EXT4_SECRM_FL) {
+
+		err = ext4_secure_delete_pblks(inode, block, count);
+		if (err)
+			goto error_return;
+	}
+
 	if ((flags & EXT4_FREE_BLOCKS_METADATA) && ext4_handle_valid(handle)) {
 		struct ext4_free_data *new_entry;
 		/*
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ