linux_old1/fs/hpfs
Miklos Szeredi 1bd5191d9f [patch 05/14] hpfs: dont call permission()
hpfs_unlink() calls permission() prior to truncating the file.  HPFS
doesn't define a .permission method, so replace with explicit call to
generic_permission().

This is equivalent, except that devcgroup_inode_permission() and
security_inode_permission() are not called.

The truncation is just an implementation detail of the unlink, so
these security checks are unnecessary.

I suspect that even calling generic_permission() is unnecessary, since
we shouldn't mind if the file isn't writable.  But I leave that to the
maintainer to decide.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
CC: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
2008-07-26 20:53:13 -04:00
..
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
alloc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
anode.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
buffer.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00
dentry.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dir.c [PATCH] struct path: convert hpfs 2006-12-08 08:28:45 -08:00
dnode.c [PATCH] hpfs: fix printk format warnings 2006-12-07 08:39:35 -08:00
ea.c [PATCH] hpfs: fix printk format warnings 2006-12-07 08:39:35 -08:00
file.c hpfs: convert to new aops 2007-10-16 09:42:56 -07:00
hpfs.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
hpfs_fn.h [PATCH] mark struct inode_operations const 2 2007-02-12 09:48:46 -08:00
inode.c [PATCH] hpfs: fix printk format warnings 2006-12-07 08:39:35 -08:00
map.c [PATCH] hpfs: fix printk format warnings 2006-12-07 08:39:35 -08:00
name.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
namei.c [patch 05/14] hpfs: dont call permission() 2008-07-26 20:53:13 -04:00
super.c SL*B: drop kmem cache argument from constructor 2008-07-26 12:00:07 -07:00