[PATCH -next 1/2] apparmor: Modify mismatched function name

John Johansen john.johansen at canonical.com
Fri Jan 24 22:03:58 UTC 2025


On 1/20/25 18:44, Jiapeng Chong wrote:
> No functional modification involved.
> 
> security/apparmor/file.c:184: warning: expecting prototype for aa_lookup_fperms(). Prototype was for aa_lookup_condperms() instead.
> 
> Reported-by: Abaci Robot <abaci at linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=13605
> Signed-off-by: Jiapeng Chong <jiapeng.chong at linux.alibaba.com>

Acked-by: John Johansen <john.johansen at canonical.com>

I have pulled this into my tree

> ---
>   security/apparmor/file.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/security/apparmor/file.c b/security/apparmor/file.c
> index 85f89814af1e..f113eedbc208 100644
> --- a/security/apparmor/file.c
> +++ b/security/apparmor/file.c
> @@ -169,7 +169,7 @@ static int path_name(const char *op, const struct cred *subj_cred,
>   
>   struct aa_perms default_perms = {};
>   /**
> - * aa_lookup_fperms - convert dfa compressed perms to internal perms
> + * aa_lookup_condperms - convert dfa compressed perms to internal perms
>    * @subj_uid: uid to use for subject owner test
>    * @rules: the aa_policydb to lookup perms for  (NOT NULL)
>    * @state: state in dfa




More information about the Linux-security-module-archive mailing list