mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-22 01:08:13 -04:00
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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user