diff options
author | akpm@osdl.org <akpm@osdl.org> | 2006-01-09 23:51:58 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 11:01:30 -0500 |
commit | 267fd05791aafea3786494365a5d13d7923ef526 (patch) | |
tree | 01f46843a0095dfb80fd7686e27b94045d2a0ff9 /fs/ext2/xattr_trusted.c | |
parent | 44a0033f6d5f3e7e2fc37d7b44a1d105c70d4682 (diff) |
[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.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/ext2/xattr_trusted.c b/fs/ext2/xattr_trusted.c index 52b30ee6a25f..2c072bfea23b 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, | |||
38 | { | 38 | { |
39 | if (strcmp(name, "") == 0) | 39 | if (strcmp(name, "") == 0) |
40 | return -EINVAL; | 40 | return -EINVAL; |
41 | if (!capable(CAP_SYS_ADMIN)) | ||
42 | return -EPERM; | ||
43 | return ext2_xattr_get(inode, EXT2_XATTR_INDEX_TRUSTED, name, | 41 | return ext2_xattr_get(inode, EXT2_XATTR_INDEX_TRUSTED, name, |
44 | buffer, size); | 42 | buffer, size); |
45 | } | 43 | } |
@@ -50,8 +48,6 @@ ext2_xattr_trusted_set(struct inode *inode, const char *name, | |||
50 | { | 48 | { |
51 | if (strcmp(name, "") == 0) | 49 | if (strcmp(name, "") == 0) |
52 | return -EINVAL; | 50 | return -EINVAL; |
53 | if (!capable(CAP_SYS_ADMIN)) | ||
54 | return -EPERM; | ||
55 | return ext2_xattr_set(inode, EXT2_XATTR_INDEX_TRUSTED, name, | 51 | return ext2_xattr_set(inode, EXT2_XATTR_INDEX_TRUSTED, name, |
56 | value, size, flags); | 52 | value, size, flags); |
57 | } | 53 | } |