apparmorfs.h (556d0be74b19cb6288e5eb2f3216eac247d87968) apparmorfs.h (f8eb8a1324e81927b2c64823b2fc38386efd3fef)
1/*
2 * AppArmor security module
3 *
4 * This file contains AppArmor filesystem definitions.
5 *
6 * Copyright (C) 1998-2008 Novell/SUSE
7 * Copyright 2009-2010 Canonical Ltd.
8 *

--- 68 unchanged lines hidden (view full) ---

77};
78
79enum aafs_prof_type {
80 AAFS_PROF_DIR,
81 AAFS_PROF_PROFS,
82 AAFS_PROF_NAME,
83 AAFS_PROF_MODE,
84 AAFS_PROF_ATTACH,
1/*
2 * AppArmor security module
3 *
4 * This file contains AppArmor filesystem definitions.
5 *
6 * Copyright (C) 1998-2008 Novell/SUSE
7 * Copyright 2009-2010 Canonical Ltd.
8 *

--- 68 unchanged lines hidden (view full) ---

77};
78
79enum 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,
85 AAFS_PROF_SIZEOF,
86};
87
88#define ns_dir(X) ((X)->dents[AAFS_NS_DIR])
89#define ns_subns_dir(X) ((X)->dents[AAFS_NS_NS])
90#define ns_subprofs_dir(X) ((X)->dents[AAFS_NS_PROFS])
91
92#define prof_dir(X) ((X)->dents[AAFS_PROF_DIR])
93#define prof_child_dir(X) ((X)->dents[AAFS_PROF_PROFS])
94
95void __aa_fs_profile_rmdir(struct aa_profile *profile);
96void __aa_fs_profile_migrate_dents(struct aa_profile *old,
97 struct aa_profile *new);
98int __aa_fs_profile_mkdir(struct aa_profile *profile, struct dentry *parent);
99void __aa_fs_namespace_rmdir(struct aa_namespace *ns);
100int __aa_fs_namespace_mkdir(struct aa_namespace *ns, struct dentry *parent,
101 const char *name);
102
103#endif /* __AA_APPARMORFS_H */
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
96void __aa_fs_profile_rmdir(struct aa_profile *profile);
97void __aa_fs_profile_migrate_dents(struct aa_profile *old,
98 struct aa_profile *new);
99int __aa_fs_profile_mkdir(struct aa_profile *profile, struct dentry *parent);
100void __aa_fs_namespace_rmdir(struct aa_namespace *ns);
101int __aa_fs_namespace_mkdir(struct aa_namespace *ns, struct dentry *parent,
102 const char *name);
103
104#endif /* __AA_APPARMORFS_H */