]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
apparmor: use __label_make_stale in __aa_proxy_redirect
authorRyan Lee <ryan.lee@canonical.com>
Thu, 12 Feb 2026 21:15:14 +0000 (13:15 -0800)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 14 Jun 2026 03:14:06 +0000 (20:14 -0700)
The macro is equivalent to OR-ing in the bitflag manually, but using the
macro consistently makes grepping for these occurrences easier.

Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/label.c

index c60244ed96db091075c2a18a235861b2532cd7a8..3fd384d8c41aafdfb827ed7a000e12d9252ef364 100644 (file)
@@ -83,7 +83,7 @@ void __aa_proxy_redirect(struct aa_label *orig, struct aa_label *new)
        tmp = rcu_dereference_protected(orig->proxy->label,
                                        &labels_ns(orig)->lock);
        rcu_assign_pointer(orig->proxy->label, aa_get_label(new));
-       orig->flags |= FLAG_STALE;
+       __label_make_stale(orig);
        aa_put_label(tmp);
 }