diff options
| author | Ryan Lee <ryan.lee@canonical.com> | 2026-02-12 13:15:14 -0800 |
|---|---|---|
| committer | John Johansen <john.johansen@canonical.com> | 2026-06-13 20:14:06 -0700 |
| commit | 1adefbd0d5f5a2dafb3f1ee4537dc1db69fb29d4 (patch) | |
| tree | 7c7d97f43ed2c467a1ff9cfa6f7fedd84fa9ddd0 /security | |
| parent | 1c8a839442823ce5c627d645730d8c61d828aafa (diff) | |
| download | linux-2.6-1adefbd0d5f5a2dafb3f1ee4537dc1db69fb29d4.tar.gz linux-2.6-1adefbd0d5f5a2dafb3f1ee4537dc1db69fb29d4.zip | |
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 <georgia.garcia@canonical.com>
Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security')
| -rw-r--r-- | security/apparmor/label.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/label.c b/security/apparmor/label.c index c60244ed96db..3fd384d8c41a 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); } |
