diff options
Diffstat (limited to 'security/apparmor/include/apparmorfs.h')
-rw-r--r-- | security/apparmor/include/apparmorfs.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/security/apparmor/include/apparmorfs.h b/security/apparmor/include/apparmorfs.h index 7ea4769fab3f..414e56878dd0 100644 --- a/security/apparmor/include/apparmorfs.h +++ b/security/apparmor/include/apparmorfs.h | |||
@@ -61,4 +61,44 @@ extern const struct file_operations aa_fs_seq_file_ops; | |||
61 | 61 | ||
62 | extern void __init aa_destroy_aafs(void); | 62 | extern void __init aa_destroy_aafs(void); |
63 | 63 | ||
64 | struct aa_profile; | ||
65 | struct aa_namespace; | ||
66 | |||
67 | enum aafs_ns_type { | ||
68 | AAFS_NS_DIR, | ||
69 | AAFS_NS_PROFS, | ||
70 | AAFS_NS_NS, | ||
71 | AAFS_NS_COUNT, | ||
72 | AAFS_NS_MAX_COUNT, | ||
73 | AAFS_NS_SIZE, | ||
74 | AAFS_NS_MAX_SIZE, | ||
75 | AAFS_NS_OWNER, | ||
76 | AAFS_NS_SIZEOF, | ||
77 | }; | ||
78 | |||
79 | enum aafs_prof_type { | ||
80 | AAFS_PROF_DIR, | ||
81 | AAFS_PROF_PROFS, | ||
82 | AAFS_PROF_NAME, | ||
83 | AAFS_PROF_MODE, | ||
84 | AAFS_PROF_ATTACH, | ||
85 | AAFS_PROF_HASH, | ||
86 | AAFS_PROF_SIZEOF, | ||
87 | }; | ||
88 | |||
89 | #define ns_dir(X) ((X)->dents[AAFS_NS_DIR]) | ||
90 | #define ns_subns_dir(X) ((X)->dents[AAFS_NS_NS]) | ||
91 | #define ns_subprofs_dir(X) ((X)->dents[AAFS_NS_PROFS]) | ||
92 | |||
93 | #define prof_dir(X) ((X)->dents[AAFS_PROF_DIR]) | ||
94 | #define prof_child_dir(X) ((X)->dents[AAFS_PROF_PROFS]) | ||
95 | |||
96 | void __aa_fs_profile_rmdir(struct aa_profile *profile); | ||
97 | void __aa_fs_profile_migrate_dents(struct aa_profile *old, | ||
98 | struct aa_profile *new); | ||
99 | int __aa_fs_profile_mkdir(struct aa_profile *profile, struct dentry *parent); | ||
100 | void __aa_fs_namespace_rmdir(struct aa_namespace *ns); | ||
101 | int __aa_fs_namespace_mkdir(struct aa_namespace *ns, struct dentry *parent, | ||
102 | const char *name); | ||
103 | |||
64 | #endif /* __AA_APPARMORFS_H */ | 104 | #endif /* __AA_APPARMORFS_H */ |