summaryrefslogtreecommitdiffstats
path: root/fs/ext2/xattr_trusted.c
diff options
context:
space:
mode:
authorakpm@osdl.org <akpm@osdl.org>2006-01-09 20:51:58 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 08:01:30 -0800
commit267fd05791aafea3786494365a5d13d7923ef526 (patch)
tree01f46843a0095dfb80fd7686e27b94045d2a0ff9 /fs/ext2/xattr_trusted.c
parent44a0033f6d5f3e7e2fc37d7b44a1d105c70d4682 (diff)
downloadop-kernel-dev-267fd05791aafea3786494365a5d13d7923ef526.zip
op-kernel-dev-267fd05791aafea3786494365a5d13d7923ef526.tar.gz
[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>
Diffstat (limited to 'fs/ext2/xattr_trusted.c')
-rw-r--r--fs/ext2/xattr_trusted.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ext2/xattr_trusted.c b/fs/ext2/xattr_trusted.c
index 52b30ee..2c072bf 100644
--- a/fs/ext2/xattr_trusted.c
+++ b/fs/ext2/xattr_trusted.c
@@ -38,8 +38,6 @@ ext2_xattr_trusted_get(struct inode *inode, const char *name,
{
if (strcmp(name, "") == 0)
return -EINVAL;
- if (!capable(CAP_SYS_ADMIN))
- return -EPERM;
return ext2_xattr_get(inode, EXT2_XATTR_INDEX_TRUSTED, name,
buffer, size);
}
@@ -50,8 +48,6 @@ ext2_xattr_trusted_set(struct inode *inode, const char *name,
{
if (strcmp(name, "") == 0)
return -EINVAL;
- if (!capable(CAP_SYS_ADMIN))
- return -EPERM;
return ext2_xattr_set(inode, EXT2_XATTR_INDEX_TRUSTED, name,
value, size, flags);
}
OpenPOWER on IntegriCloud