summaryrefslogtreecommitdiff
path: root/security/apparmor/policy.c
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-01-16 11:42:18 +0300
committerJohn Johansen <john.johansen@canonical.com>2017-01-16 12:16:37 +0300
commitd97d51d253e08e059bba40002407ec3d188feafb (patch)
tree93e8b0a9a0ecac62c0ed40be548b84fd91a4cef7 /security/apparmor/policy.c
parent121d4a91e3c12ddfb167edafb9aa64cc5cc3a406 (diff)
downloadlinux-d97d51d253e08e059bba40002407ec3d188feafb.tar.xz
apparmor: rename PFLAG_INVALID to PFLAG_STALE
Invalid does not convey the meaning of the flag anymore so rename it. Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/policy.c')
-rw-r--r--security/apparmor/policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/apparmor/policy.c b/security/apparmor/policy.c
index 2dd8717a5a89..edc81a0d0cb4 100644
--- a/security/apparmor/policy.c
+++ b/security/apparmor/policy.c
@@ -106,7 +106,7 @@ void __aa_update_replacedby(struct aa_profile *orig, struct aa_profile *new)
tmp = rcu_dereference_protected(orig->replacedby->profile,
mutex_is_locked(&orig->ns->lock));
rcu_assign_pointer(orig->replacedby->profile, aa_get_profile(new));
- orig->flags |= PFLAG_INVALID;
+ orig->flags |= PFLAG_STALE;
aa_put_profile(tmp);
}