提交 ad9c2b04 编写于 作者: T Tetsuo Handa 提交者: James Morris

security: Fix comment of security_key_permission

Comment for return value of security_key_permission() has been wrong
since it was added in 2.6.15.
Signed-off-by: NTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: NJames Morris <jmorris@namei.org>
上级 93ae86e7
...@@ -1058,8 +1058,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts) ...@@ -1058,8 +1058,7 @@ static inline void security_free_mnt_opts(struct security_mnt_opts *opts)
* @cred points to the credentials to provide the context against which to * @cred points to the credentials to provide the context against which to
* evaluate the security data on the key. * evaluate the security data on the key.
* @perm describes the combination of permissions required of this key. * @perm describes the combination of permissions required of this key.
* Return 1 if permission granted, 0 if permission denied and -ve it the * Return 0 if permission is granted, -ve error otherwise.
* normal permissions model should be effected.
* @key_getsecurity: * @key_getsecurity:
* Get a textual representation of the security context attached to a key * Get a textual representation of the security context attached to a key
* for the purposes of honouring KEYCTL_GETSECURITY. This function * for the purposes of honouring KEYCTL_GETSECURITY. This function
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册