On Sat, Aug 16, 2008 at 7:39 PM, Theodore Tso <tytso@mit.edu> wrote:These file system caches are internal permissions caching points where the driver decides what you can and cannot see. Before conversion to normal inode structs. Others have own internal buffers for transfers. Yes everything is stored on the page cache but it does not have to be in any shape you would normally id as a file. I have a bad habit of putting buffers and caches in the same box. Thinking that some file system drivers are smart enough to use the same buffer if they get the same request twice. So even that a file may have been rejected due to being a virus it can still be sitting around in memory in a buffer not cleared. Thrown away data is not only Proprietary OS Ted. There are permssions on mac amiga and many others but there not the only issues of stuff being made invisible by the driver. There are fully documented file systems that have hidden streams you cannot see without passing them correct flags. UDF undelete and unhide options and ISO showassoc makes more files appear on those formats. UDF and ISO hidden files are one of the nasties. AV scans the disk calls it clean. Remount it with the other options enabled nice little bit of magic hidden infected files could turn up. Black holed. What is the worst bit about this knowing the luck of this world. Some people will mount the disks/partitions with the option that displays the virus with a OS without a anti-virus because another computer said the disk was clean. Ext2/3/4 nouser_xattr and noacl don't remove the permissions just remove the map threw from the driver. Now there is also the up coming issues of www.nilfs.org and other continual snap shotting file systems. If cannot see the permissions the filesystem drivers are processing and the data those permissions are causing to be hidden. The best you can do at the moment see that the flags to make the data invisible or visible is set and ask user to remount drive just so you can scan it. Continual snap shotting file systems users are not going to take to being asked to stop what they are doing so anti-virus can remount the filesystem a few million times to make sure the disk is clean of viruses. Virus scanning takes long enough without doing that. So either anti-virus companies will have to build custom interfaces that bugs users to handle UDF ISO and any other continual snap shotting file system that appears. Or we improve the core so software that needs to can see everything on a file system can to the level the drivers support so when a drive is truly 100 percent scanned it is 100 percent scanned. No missing files. Root user really does not help against hidden files that the driver is hiding due to obeying hidden permissions. I was not clear enough. Some of the hidden permissions that don't appear in the inode system cause files to disappear from existence on the file system until that filesystem is mounted with the right option. Or in the case of a continual snap shotting filesystem virus could be still there in a roll back just like windows. So user deleting the virus never got rid of it. So months latter the same virus can turn up again and again. If it just happens to line up with the user have the anti-virus down it gets a second chance that it should have never got. Surface scanning from the inode system is kinda blind to a lot of hidden spots on quite a few file systems. Some of the hidden permissions can be handy as well for HIDS to tell if anyone has been on a file system since it was last there too. If a not used acl or user xattr been touched someone else has been on the filesystem since it was last left. There is a nice void space where viruses can nicely hide out at the moment. Issue is more void space is going to be made unless some system is designed to handle file systems with these non translatable permissions and options hidden permissions. Yes currently hack around issue of posix permissions not providing every option has been adding a mount option. More dynamic options for handling the issue of non translatable permissions should be possible and less user disrupting. Can you now see the sign of trouble I have been trying and trying to put into words. I can see the problem. Putting it in the right words has been a battle. Peter Dolding --
| monstr | [PATCH 27/56] microblaze_v2: support for a.out |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Rafael J. Wysocki | [Bug #10493] mips BCM47XX compile error |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| Frans Pop | svc: failed to register lockdv1 RPC service (errno 97). |
