Hello everyone. I am new here, so if this is the wrong area, please point me in the right direction.
I am currently attempting to enable secure deletion in the EXT3 filesystem, by altering the code inside the kernel itself. I plan on adding code in the linux-2.4.18\linux\fs\ext3\inode.c and namei.c files, specifically in the ext3_delete_inode and ext3_unlink functions, respectively.
My planned alterations will write out a series of 0s to the data blocks of a deleted file or directory before the inode itself is zeroed out. This will cause an obvious performance hit, which I will attempt to address later. One step at a time and all.
My conundrum is figuring out how to write to the disk from kernel mode. Both of the functions I am working in will provide me with the inode of the file. What is the best way to go about my goal? A link to an appropriate FAQ or how-to would be similarly appreciated.
Thank for all your help.