diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-05-19 02:34:34 -0400 |
---|---|---|
committer | Niv Sardi <xaiki@debian.org> | 2008-07-28 02:58:13 -0400 |
commit | 911ee3de3d1cb6620e2ac4e0678ff434867e2644 (patch) | |
tree | 3ecde1181f6e312073893feee10893fd5be7d9ce /fs/xfs/xfs_attr.h | |
parent | d748c62367eb630cc30b91d561a5362f597a0892 (diff) |
[XFS] Kill attr_capable checks as already done in xattr_permission.
No need for addition permission checks in the xattr handler,
fs/xattr.c:xattr_permission() already does them, and in fact slightly more
strict then what was in the attr_capable handlers.
SGI-PV: 981809
SGI-Modid: xfs-linux-melb:xfs-kern:31164a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Tim Shimmin <tes@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_attr.h')
-rw-r--r-- | fs/xfs/xfs_attr.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/xfs/xfs_attr.h b/fs/xfs/xfs_attr.h index 6cfc9384fe35..9b96d171b75c 100644 --- a/fs/xfs/xfs_attr.h +++ b/fs/xfs/xfs_attr.h | |||
@@ -42,7 +42,6 @@ typedef int (*attrset_t)(bhv_vnode_t *, char *, void *, size_t, int); | |||
42 | typedef int (*attrget_t)(bhv_vnode_t *, char *, void *, size_t, int); | 42 | typedef int (*attrget_t)(bhv_vnode_t *, char *, void *, size_t, int); |
43 | typedef int (*attrremove_t)(bhv_vnode_t *, char *, int); | 43 | typedef int (*attrremove_t)(bhv_vnode_t *, char *, int); |
44 | typedef int (*attrexists_t)(bhv_vnode_t *); | 44 | typedef int (*attrexists_t)(bhv_vnode_t *); |
45 | typedef int (*attrcapable_t)(bhv_vnode_t *, struct cred *); | ||
46 | 45 | ||
47 | typedef struct attrnames { | 46 | typedef struct attrnames { |
48 | char * attr_name; | 47 | char * attr_name; |
@@ -52,7 +51,6 @@ typedef struct attrnames { | |||
52 | attrset_t attr_set; | 51 | attrset_t attr_set; |
53 | attrremove_t attr_remove; | 52 | attrremove_t attr_remove; |
54 | attrexists_t attr_exists; | 53 | attrexists_t attr_exists; |
55 | attrcapable_t attr_capable; | ||
56 | } attrnames_t; | 54 | } attrnames_t; |
57 | 55 | ||
58 | #define ATTR_NAMECOUNT 4 | 56 | #define ATTR_NAMECOUNT 4 |