mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 01:32:21 +02: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:
parent
1c8a839442
commit
1adefbd0d5
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user