]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - security/apparmor/include/policy.h
apparmor: allow introspecting the loaded policy pre internal transform
[mirror_ubuntu-bionic-kernel.git] / security / apparmor / include / policy.h
index 95641e235d47c88885f17a778e4ba5bdf9d8f96e..fbbc8677f527b73b5c61c4b1b440937f65ddcda0 100644 (file)
@@ -161,6 +161,7 @@ struct aa_profile {
        struct aa_caps caps;
        struct aa_rlimit rlimits;
 
+       struct aa_loaddata *rawdata;
        unsigned char *hash;
        char *dirname;
        struct dentry *dents[AAFS_PROF_SIZEOF];
@@ -187,8 +188,8 @@ struct aa_profile *aa_fqlookupn_profile(struct aa_profile *base,
                                        const char *fqname, size_t n);
 struct aa_profile *aa_match_profile(struct aa_ns *ns, const char *name);
 
-ssize_t aa_replace_profiles(struct aa_ns *view, void *udata, size_t size,
-                           bool noreplace);
+ssize_t aa_replace_profiles(struct aa_ns *view, bool noreplace,
+                           struct aa_loaddata *udata);
 ssize_t aa_remove_profiles(struct aa_ns *view, char *name, size_t size);
 void __aa_profile_list_release(struct list_head *head);