Skip to content

Commit a302824

Browse files
committed
Merge branch 'next-general' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
Pull misc security layer update from James Morris: "This is the remaining 'general' change in the security tree for v4.14, following the direct merging of SELinux (+ TOMOYO), AppArmor, and seccomp. That's everything now for the security tree except IMA, which will follow shortly (I've been traveling for the past week with patchy internet)" * 'next-general' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: security: fix description of values returned by cap_inode_need_killpriv
2 parents 1436ab0 + ab5348c commit a302824

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

security/commoncap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,10 @@ int cap_capset(struct cred *new,
294294
*
295295
* Determine if an inode having a change applied that's marked ATTR_KILL_PRIV
296296
* affects the security markings on that inode, and if it is, should
297-
* inode_killpriv() be invoked or the change rejected?
297+
* inode_killpriv() be invoked or the change rejected.
298298
*
299-
* Returns 0 if granted; +ve if granted, but inode_killpriv() is required; and
300-
* -ve to deny the change.
299+
* Returns 1 if security.capability has a value, meaning inode_killpriv()
300+
* is required, 0 otherwise, meaning inode_killpriv() is not required.
301301
*/
302302
int cap_inode_need_killpriv(struct dentry *dentry)
303303
{

0 commit comments

Comments
 (0)