From: Tetsuo Handa Date: Tue, 30 Nov 2010 02:06:47 +0000 (+0900) Subject: security: Fix comment of security_key_permission X-Git-Tag: upstream/snapshot3+hdmi~12094^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad9c2b048b605fbc8d50526e330b88abdd631ab2;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: Tetsuo Handa Signed-off-by: James Morris --- diff --git a/include/linux/security.h b/include/linux/security.h index fd4d55f..e7d89b0 100644 --- a/include/linux/security.h +++ b/include/linux/security.h @@ -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 * evaluate the security data on the key. * @perm describes the combination of permissions required of this key. - * Return 1 if permission granted, 0 if permission denied and -ve it the - * normal permissions model should be effected. + * Return 0 if permission is granted, -ve error otherwise. * @key_getsecurity: * Get a textual representation of the security context attached to a key * for the purposes of honouring KEYCTL_GETSECURITY. This function