diff options
| -rw-r--r-- | security/commoncap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/security/commoncap.c b/security/commoncap.c index 7abebd782d5e..123426900d25 100644 --- a/security/commoncap.c +++ b/security/commoncap.c | |||
| @@ -300,10 +300,10 @@ static inline void bprm_clear_caps(struct linux_binprm *bprm) | |||
| 300 | * | 300 | * |
| 301 | * Determine if an inode having a change applied that's marked ATTR_KILL_PRIV | 301 | * Determine if an inode having a change applied that's marked ATTR_KILL_PRIV |
| 302 | * affects the security markings on that inode, and if it is, should | 302 | * affects the security markings on that inode, and if it is, should |
| 303 | * inode_killpriv() be invoked or the change rejected? | 303 | * inode_killpriv() be invoked or the change rejected. |
| 304 | * | 304 | * |
| 305 | * Returns 0 if granted; +ve if granted, but inode_killpriv() is required; and | 305 | * Returns 1 if security.capability has a value, meaning inode_killpriv() |
| 306 | * -ve to deny the change. | 306 | * is required, 0 otherwise, meaning inode_killpriv() is not required. |
| 307 | */ | 307 | */ |
| 308 | int cap_inode_need_killpriv(struct dentry *dentry) | 308 | int cap_inode_need_killpriv(struct dentry *dentry) |
| 309 | { | 309 | { |
