summaryrefslogtreecommitdiff
path: root/security/apparmor/include/policy_ns.h
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2017-05-26 16:27:58 -0700
committerJohn Johansen <john.johansen@canonical.com>2017-06-10 17:11:27 -0700
commitd9bf2c268be6064ae0c9980e4c37fdd262c7effc (patch)
tree2899522e36e8d9d2cac79678647fcf6ecc36ca1d /security/apparmor/include/policy_ns.h
parent18e99f191a8e66ec8fd06e4820de44bd9faa296a (diff)
apparmor: add policy revision file interface
Add a policy revision file to find the current revision of a ns's policy. There is a revision file per ns, as well as a virtualized global revision file in the base apparmor fs directory. The global revision file when opened will provide the revision of the opening task namespace. The revision file can be waited on via select/poll to detect apparmor policy changes from the last read revision of the opened file. This means that the revision file must be read after the select/poll other wise update data will remain ready for reading. Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'security/apparmor/include/policy_ns.h')
-rw-r--r--security/apparmor/include/policy_ns.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/apparmor/include/policy_ns.h b/security/apparmor/include/policy_ns.h
index d7a07ac96168..23e7cb770226 100644
--- a/security/apparmor/include/policy_ns.h
+++ b/security/apparmor/include/policy_ns.h
@@ -69,6 +69,7 @@ struct aa_ns {
long uniq_id;
int level;
long revision;
+ wait_queue_head_t wait;
struct list_head rawdata_list;