git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
staging: rt2860: use new hex_to_bin() method
[safe/jmp/linux-2.6]
/
security
/
commoncap.c
diff --git
a/security/commoncap.c
b/security/commoncap.c
index
c45c4d2
..
4e01599
100644
(file)
--- a/
security/commoncap.c
+++ b/
security/commoncap.c
@@
-570,7
+570,7
@@
int cap_inode_setxattr(struct dentry *dentry, const char *name,
}
if (!strncmp(name, XATTR_SECURITY_PREFIX,
}
if (!strncmp(name, XATTR_SECURITY_PREFIX,
- sizeof(XATTR_SECURITY_PREFIX) - 1)
&&
+ sizeof(XATTR_SECURITY_PREFIX) - 1) &&
!capable(CAP_SYS_ADMIN))
return -EPERM;
return 0;
!capable(CAP_SYS_ADMIN))
return -EPERM;
return 0;
@@
-596,7
+596,7
@@
int cap_inode_removexattr(struct dentry *dentry, const char *name)
}
if (!strncmp(name, XATTR_SECURITY_PREFIX,
}
if (!strncmp(name, XATTR_SECURITY_PREFIX,
- sizeof(XATTR_SECURITY_PREFIX) - 1)
&&
+ sizeof(XATTR_SECURITY_PREFIX) - 1) &&
!capable(CAP_SYS_ADMIN))
return -EPERM;
return 0;
!capable(CAP_SYS_ADMIN))
return -EPERM;
return 0;