Hi all,<br>I was thinking about file hiding in ext3 and thought about this method. I want know whether this will work or not.<br><br>1. creat an immutable file (/usr/share/exthide/file1.txt)  with content "Tool to hide files" <br>
<br>2. Now creat an symbolic link (exthide.tmp) to (/usr/share/exthide/file1.txt)<br><br>3. Now get file that needs to be hidden from user. (/home/laks/userfile.txt)<br><br>4. Get user files (/home/laks/userfile.txt) inode,assume it is small-sized file( that if i_block[13] !=0 , then exit)  copy block number at i_block[0]  to i_block[13] and i_size to i_block[14]<br>
<br>5. Now Get exthide.tmp's (symbolic link) i_block[0] value and assign it to i_block[0]  of /home/laks/userfile.txt <br>   and assign exthide.tmp i_size and i_mode to /home/laks/userfile.txt inode's size and mode.<br>
  ( or should i leave /home/laks/userfile.txt inode's i_size to its original value ?)<br><br>6. Now move to /home/laks/userfile.txt  's directory (ie /home/laks) and change this userfile.txt file type as 7 and write this parent inode.<br>
<br>Thus the file /home/laks/userfile.txt content is hidden now,Since  /home/laks/userfile.txt file type is set as symbolic link and points to (/usr/share/exthide/file1.txt).<br><br>If user wants to view hidden file , then again copy back blocks number from i_block[13] to i_block[0] and set file type as regular in inode and pareant inode.<br>
<br>Do you think , this method will work ? or It has serious issues ?<br clear="all"><br>-- <br>----<br>Cheers,<br>Lakshmipathi.G<br>FOSS Programmer.<br><a href="http://www.giis.co.in">www.giis.co.in</a><br>