[PATCH] remove ext2 xattr permission checks
) From: Christoph Hellwig <hch@lst.de> remove checks now in the VFS Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
44a0033f6d
commit
267fd05791
@ -389,10 +389,6 @@ ext2_xattr_set(struct inode *inode, int name_index, const char *name,
|
||||
ea_idebug(inode, "name=%d.%s, value=%p, value_len=%ld",
|
||||
name_index, name, value, (long)value_len);
|
||||
|
||||
if (IS_RDONLY(inode))
|
||||
return -EROFS;
|
||||
if (IS_IMMUTABLE(inode) || IS_APPEND(inode))
|
||||
return -EPERM;
|
||||
if (value == NULL)
|
||||
value_len = 0;
|
||||
if (name == NULL)
|
||||
|
Reference in New Issue
Block a user