From: Ryan Lee Date: Thu, 12 Feb 2026 21:15:14 +0000 (-0800) Subject: apparmor: use __label_make_stale in __aa_proxy_redirect X-Git-Tag: v7.2-rc1~43^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1adefbd0d5f5a2dafb3f1ee4537dc1db69fb29d4;p=thirdparty%2Fkernel%2Flinux.git apparmor: use __label_make_stale in __aa_proxy_redirect 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 Signed-off-by: Ryan Lee Signed-off-by: John Johansen --- diff --git a/security/apparmor/label.c b/security/apparmor/label.c index c60244ed96db0..3fd384d8c41aa 100644 --- a/security/apparmor/label.c +++ b/security/apparmor/label.c @@ -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); }