On Tue, 2026-07-07 at 11:13 -0700, Ryan Lee via AppArmor wrote:

Acked-by: Georgia Garcia <[email protected]>

> Signed-off-by: Ryan Lee <[email protected]>
> ---
>  security/apparmor/lsm.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/security/apparmor/lsm.c b/security/apparmor/lsm.c
> index a30a17afe4b3..3c2fc6daa75f 100644
> --- a/security/apparmor/lsm.c
> +++ b/security/apparmor/lsm.c
> @@ -1029,9 +1029,9 @@ static int apparmor_task_kill(struct task_struct 
> *target, struct kernel_siginfo
>               /*
>                * Dealing with USB IO specific behavior
>                */
> -             cl = aa_get_newest_cred_label(cred);
> +             cl = aa_get_newest_cred_label_condref(cred, &needput);
>               error = aa_may_signal(cred, cl, tc, tl, sig);
> -             aa_put_label(cl);
> +             aa_put_label_condref(cl, needput);
>       } else {
>               cl = __begin_current_label_crit_section(&needput);
>               error = aa_may_signal(current_cred(), cl, tc, tl, sig);


Reply via email to