diff options
Diffstat (limited to 'fs/reiserfs/xattr_security.c')
-rw-r--r-- | fs/reiserfs/xattr_security.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/reiserfs/xattr_security.c b/fs/reiserfs/xattr_security.c index 056008db1377..1958b361c35d 100644 --- a/fs/reiserfs/xattr_security.c +++ b/fs/reiserfs/xattr_security.c | |||
@@ -12,7 +12,7 @@ security_get(struct inode *inode, const char *name, void *buffer, size_t size) | |||
12 | if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) | 12 | if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) |
13 | return -EINVAL; | 13 | return -EINVAL; |
14 | 14 | ||
15 | if (is_reiserfs_priv_object(inode)) | 15 | if (IS_PRIVATE(inode)) |
16 | return -EPERM; | 16 | return -EPERM; |
17 | 17 | ||
18 | return reiserfs_xattr_get(inode, name, buffer, size); | 18 | return reiserfs_xattr_get(inode, name, buffer, size); |
@@ -25,7 +25,7 @@ security_set(struct inode *inode, const char *name, const void *buffer, | |||
25 | if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) | 25 | if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) |
26 | return -EINVAL; | 26 | return -EINVAL; |
27 | 27 | ||
28 | if (is_reiserfs_priv_object(inode)) | 28 | if (IS_PRIVATE(inode)) |
29 | return -EPERM; | 29 | return -EPERM; |
30 | 30 | ||
31 | return reiserfs_xattr_set(inode, name, buffer, size, flags); | 31 | return reiserfs_xattr_set(inode, name, buffer, size, flags); |
@@ -36,7 +36,7 @@ static int security_del(struct inode *inode, const char *name) | |||
36 | if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) | 36 | if (strlen(name) < sizeof(XATTR_SECURITY_PREFIX)) |
37 | return -EINVAL; | 37 | return -EINVAL; |
38 | 38 | ||
39 | if (is_reiserfs_priv_object(inode)) | 39 | if (IS_PRIVATE(inode)) |
40 | return -EPERM; | 40 | return -EPERM; |
41 | 41 | ||
42 | return 0; | 42 | return 0; |
@@ -47,7 +47,7 @@ security_list(struct inode *inode, const char *name, int namelen, char *out) | |||
47 | { | 47 | { |
48 | int len = namelen; | 48 | int len = namelen; |
49 | 49 | ||
50 | if (is_reiserfs_priv_object(inode)) | 50 | if (IS_PRIVATE(inode)) |
51 | return 0; | 51 | return 0; |
52 | 52 | ||
53 | if (out) | 53 | if (out) |