/security/apparmor/include/ |
D | policy.h | 132 struct aa_profile { struct 134 struct aa_profile __rcu *parent; argument 170 void aa_add_profile(struct aa_policy *common, struct aa_profile *profile); argument 174 struct aa_profile *aa_alloc_profile(const char *name, struct aa_proxy *proxy, 176 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat, 178 void aa_free_profile(struct aa_profile *profile); 180 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name); 181 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, 183 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name); 184 struct aa_profile *aa_fqlookupn_profile(struct aa_label *base, [all …]
|
D | perms.h | 121 struct aa_profile *__p2; \ 128 struct aa_profile *__p1; \ 144 void aa_apply_modes_to_perms(struct aa_profile *profile, 150 void aa_profile_match_label(struct aa_profile *profile, struct aa_label *label, 152 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, 155 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms,
|
D | apparmorfs.h | 66 struct aa_profile; 112 void __aafs_profile_rmdir(struct aa_profile *profile); 113 void __aafs_profile_migrate_dents(struct aa_profile *old, 114 struct aa_profile *new); 115 int __aafs_profile_mkdir(struct aa_profile *profile, struct dentry *parent);
|
D | policy_unpack.h | 25 struct aa_profile *new; 26 struct aa_profile *old; 27 struct aa_profile *rename;
|
D | label.h | 60 struct aa_profile; 62 int aa_vec_unique(struct aa_profile **vec, int n, int flags); 63 struct aa_label *aa_vec_find_or_create_label(struct aa_profile **vec, int len, 66 aa_sort_and_merge_profiles((N), (struct aa_profile **)(V)) 138 struct aa_profile *vec[]; 265 struct aa_profile *profile; \ 288 struct aa_profile *__aa_label_next_not_in_set(struct label_it *I, 299 struct aa_profile *aa_label_next_in_merge(struct label_it *I, 335 int aa_label_match(struct aa_profile *profile, struct aa_label *label,
|
D | crypto.h | 22 int aa_calc_profile_hash(struct aa_profile *profile, u32 version, void *start, 29 static inline int aa_calc_profile_hash(struct aa_profile *profile, u32 version, in aa_calc_profile_hash()
|
D | policy_ns.h | 67 struct aa_profile *unconfined; 103 static inline struct aa_profile *aa_deref_parent(struct aa_profile *p) in aa_deref_parent()
|
D | file.h | 24 struct aa_profile; 160 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, 190 int __aa_path_perm(const char *op, struct aa_profile *profile,
|
D | audit.h | 137 struct aa_profile *profile; 165 int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa,
|
D | resource.h | 23 struct aa_profile;
|
D | domain.h | 34 struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex,
|
D | ipc.h | 20 struct aa_profile;
|
/security/apparmor/ |
D | policy.c | 114 static void __add_profile(struct list_head *list, struct aa_profile *profile) in __add_profile() 143 static void __list_remove_profile(struct aa_profile *profile) in __list_remove_profile() 159 static void __remove_profile(struct aa_profile *profile) in __remove_profile() 181 struct aa_profile *profile, *tmp; in __aa_profile_list_release() 210 void aa_free_profile(struct aa_profile *profile) in aa_free_profile() 254 struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, in aa_alloc_profile() 257 struct aa_profile *profile; in aa_alloc_profile() 260 profile = kzalloc(sizeof(*profile) + sizeof(struct aa_profile *) * 2, in aa_alloc_profile() 304 static struct aa_profile *__strn_find_child(struct list_head *head, in __strn_find_child() 307 return (struct aa_profile *)__policy_strn_find(head, name, len); in __strn_find_child() [all …]
|
D | ipc.c | 69 static int profile_ptrace_perm(struct aa_profile *profile, in profile_ptrace_perm() 82 static int profile_tracee_perm(struct aa_profile *tracee, in profile_tracee_perm() 93 static int profile_tracer_perm(struct aa_profile *tracer, in profile_tracer_perm() 126 struct aa_profile *profile; in aa_may_ptrace() 188 static void profile_match_signal(struct aa_profile *profile, const char *label, in profile_match_signal() 201 static int profile_signal_perm(struct aa_profile *profile, in profile_signal_perm() 202 struct aa_profile *peer, u32 request, in profile_signal_perm() 218 static int aa_signal_cross_perm(struct aa_profile *sender, in aa_signal_cross_perm() 219 struct aa_profile *target, in aa_signal_cross_perm()
|
D | domain.c | 100 static inline unsigned int match_component(struct aa_profile *profile, in match_component() 101 struct aa_profile *tp, in match_component() 135 static int label_compound_match(struct aa_profile *profile, in label_compound_match() 140 struct aa_profile *tp; in label_compound_match() 195 static int label_components_match(struct aa_profile *profile, in label_components_match() 200 struct aa_profile *tp; in label_components_match() 256 static int label_match(struct aa_profile *profile, struct aa_label *label, in label_match() 289 static int change_profile_perms(struct aa_profile *profile, in change_profile_perms() 318 static struct aa_profile *__attach_match(const char *name, in __attach_match() 322 struct aa_profile *profile, *candidate = NULL; in __attach_match() [all …]
|
D | label.c | 139 static int profile_cmp(struct aa_profile *a, struct aa_profile *b) in profile_cmp() 169 static int vec_cmp(struct aa_profile **a, int an, struct aa_profile **b, int bn) in vec_cmp() 190 static bool vec_is_stale(struct aa_profile **vec, int n) in vec_is_stale() 204 static bool vec_unconfined(struct aa_profile **vec, int n) in vec_unconfined() 220 return profile_cmp(*(struct aa_profile **)a, *(struct aa_profile **)b); in sort_cmp() 228 static inline int unique(struct aa_profile **vec, int n) in unique() 266 int aa_vec_unique(struct aa_profile **vec, int n, int flags) in aa_vec_unique() 275 sort(vec, n, sizeof(struct aa_profile *), sort_cmp, NULL); in aa_vec_unique() 282 struct aa_profile *tmp = vec[i]; in aa_vec_unique() 323 struct aa_profile *profile; in label_destroy() [all …]
|
D | capability.c | 37 struct aa_profile *profile; 68 static int audit_caps(struct common_audit_data *sa, struct aa_profile *profile, in audit_caps() 118 static int profile_capable(struct aa_profile *profile, int cap, int audit, in profile_capable() 153 struct aa_profile *profile; in aa_capable()
|
D | mount.c | 133 static int audit_mount(struct aa_profile *profile, const char *op, in audit_mount() 296 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags() 319 static int match_mnt_path_str(struct aa_profile *profile, in match_mnt_path_str() 376 static int match_mnt(struct aa_profile *profile, const struct path *path, in match_mnt() 405 struct aa_profile *profile; in aa_remount() 427 struct aa_profile *profile; in aa_bind_mount() 457 struct aa_profile *profile; in aa_mount_change_type() 480 struct aa_profile *profile; in aa_move_mount() 509 struct aa_profile *profile; in aa_new_mount() 557 static int profile_umount(struct aa_profile *profile, struct path *path, in profile_umount() [all …]
|
D | resource.c | 56 static int audit_resource(struct aa_profile *profile, unsigned int resource, in audit_resource() 85 static int profile_setrlimit(struct aa_profile *profile, unsigned int resource, in profile_setrlimit() 111 struct aa_profile *profile; in aa_task_setrlimit() 149 struct aa_profile *old, *new; in __aa_transition_rlimits()
|
D | apparmorfs.c | 611 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb() 671 struct aa_profile *profile; in query_data() 760 struct aa_profile *profile; in query_label() 1074 struct aa_profile *profile = labels_profile(label); in seq_profile_name_show() 1085 struct aa_profile *profile = labels_profile(label); in seq_profile_mode_show() 1096 struct aa_profile *profile = labels_profile(label); in seq_profile_attach_show() 1112 struct aa_profile *profile = labels_profile(label); in seq_profile_hash_show() 1164 struct aa_profile *profile; in seq_ns_nsstacked_show() 1421 void __aafs_profile_rmdir(struct aa_profile *profile) in __aafs_profile_rmdir() 1423 struct aa_profile *child; in __aafs_profile_rmdir() [all …]
|
D | file.c | 103 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() 172 struct aa_profile *profile; in path_name() 285 int __aa_path_perm(const char *op, struct aa_profile *profile, const char *name, in __aa_path_perm() 301 static int profile_path_perm(const char *op, struct aa_profile *profile, in profile_path_perm() 337 struct aa_profile *profile; in aa_path_perm() 373 static int profile_path_link(struct aa_profile *profile, in profile_path_link() 482 struct aa_profile *profile; in aa_path_link() 520 struct aa_profile *profile; in __file_path_perm()
|
D | lib.c | 284 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms() 378 void aa_profile_match_label(struct aa_profile *profile, struct aa_label *label, in aa_profile_match_label() 392 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, in aa_profile_label_perm() 426 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms()
|
D | audit.c | 84 struct aa_profile *profile = labels_profile(label); in audit_pre() 129 int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa, in aa_audit()
|
D | policy_unpack.c | 107 static int audit_iface(struct aa_profile *new, const char *ns_name, in audit_iface() 111 struct aa_profile *profile = labels_profile(aa_current_raw_label()); in audit_iface() 449 static bool unpack_trans_table(struct aa_ext *e, struct aa_profile *profile) in unpack_trans_table() 518 static bool unpack_rlimits(struct aa_ext *e, struct aa_profile *profile) in unpack_rlimits() 582 static struct aa_profile *unpack_profile(struct aa_ext *e, char **ns_name) in unpack_profile() 584 struct aa_profile *profile = NULL; in unpack_profile() 911 static int verify_profile(struct aa_profile *profile) in verify_profile() 959 struct aa_profile *profile = NULL; in aa_unpack()
|
D | crypto.c | 66 int aa_calc_profile_hash(struct aa_profile *profile, u32 version, void *start, in aa_calc_profile_hash()
|