| /security/apparmor/include/ |
| A D | policy.h | 234 struct aa_profile { struct 236 struct aa_profile __rcu *parent; argument 272 struct aa_profile *aa_alloc_null(struct aa_profile *parent, const char *name, 274 struct aa_profile *aa_new_learning_profile(struct aa_profile *parent, bool hat, 276 void aa_free_profile(struct aa_profile *profile); 277 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name); 299 static inline struct aa_profile *aa_get_newest_profile(struct aa_profile *p) in aa_get_newest_profile() 355 static inline struct aa_profile *aa_get_profile(struct aa_profile *p) in aa_get_profile() 370 static inline struct aa_profile *aa_get_profile_not0(struct aa_profile *p) in aa_get_profile_not0() 385 static inline struct aa_profile *aa_get_profile_rcu(struct aa_profile __rcu **p) in aa_get_profile_rcu() [all …]
|
| A D | apparmorfs.h | 62 struct aa_profile; 108 void __aafs_profile_rmdir(struct aa_profile *profile); 109 void __aafs_profile_migrate_dents(struct aa_profile *old, 110 struct aa_profile *new); 111 int __aafs_profile_mkdir(struct aa_profile *profile, struct dentry *parent);
|
| A D | label.h | 57 struct aa_profile; 59 int aa_vec_unique(struct aa_profile **vec, int n, int flags); 60 struct aa_label *aa_vec_find_or_create_label(struct aa_profile **vec, int len, 63 aa_sort_and_merge_profiles((N), (struct aa_profile **)(V)) 143 struct aa_profile *profile[2]; 146 DECLARE_FLEX_ARRAY(struct aa_profile *, vec); 273 struct aa_profile *__aa_label_next_not_in_set(struct label_it *I, 282 struct aa_profile *aa_label_next_in_merge(struct label_it *I, 345 int aa_label_match(struct aa_profile *profile, struct aa_ruleset *rules,
|
| A D | policy_ns.h | 63 struct aa_profile *unconfined; 97 static inline struct aa_profile *aa_deref_parent(struct aa_profile *p) in aa_deref_parent()
|
| A D | crypto.h | 18 int aa_calc_profile_hash(struct aa_profile *profile, u32 version, void *start, 25 static inline int aa_calc_profile_hash(struct aa_profile *profile, u32 version, in aa_calc_profile_hash()
|
| A D | perms.h | 181 struct aa_profile *__p2; \ 188 struct aa_profile *__p1; \ 209 void aa_apply_modes_to_perms(struct aa_profile *profile, 213 void aa_profile_match_label(struct aa_profile *profile, 216 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms,
|
| A D | policy_unpack.h | 22 struct aa_profile *new; 23 struct aa_profile *old; 24 struct aa_profile *rename;
|
| A D | file.h | 21 struct aa_profile; 75 struct aa_profile *profile, struct aa_perms *perms, 88 struct aa_profile *profile, const char *name,
|
| A D | net.h | 88 int aa_do_perms(struct aa_profile *profile, struct aa_policydb *policy, 96 int aa_profile_af_perm(struct aa_profile *profile, 102 static inline int aa_profile_af_sk_perm(struct aa_profile *profile, in aa_profile_af_sk_perm()
|
| A D | audit.h | 151 struct aa_profile *profile; 186 int aa_audit(int type, struct aa_profile *profile,
|
| A D | domain.h | 25 struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex,
|
| A D | resource.h | 19 struct aa_profile;
|
| /security/apparmor/ |
| A D | policy.c | 332 struct aa_profile *profile; in aa_alloc_profile() 450 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name) in aa_find_child() 452 struct aa_profile *profile; in aa_find_child() 646 struct aa_profile *aa_alloc_null(struct aa_profile *parent, const char *name, in aa_alloc_null() 694 struct aa_profile *aa_new_learning_profile(struct aa_profile *parent, bool hat, in aa_new_learning_profile() 973 static void __replace_profile(struct aa_profile *old, struct aa_profile *new) in __replace_profile() 982 struct aa_profile *p; in __replace_profile() 1045 static void share_name(struct aa_profile *old, struct aa_profile *new) in share_name() 1057 static struct aa_profile *update_to_newest_parent(struct aa_profile *new) in update_to_newest_parent() 1165 struct aa_profile *p; in aa_replace_profiles() [all …]
|
| A D | label.c | 135 static int profile_cmp(struct aa_profile *a, struct aa_profile *b) in profile_cmp() 166 static int vec_cmp(struct aa_profile **a, int an, struct aa_profile **b, int bn) in vec_cmp() 224 return profile_cmp(*(struct aa_profile **)a, *(struct aa_profile **)b); in sort_cmp() 326 struct aa_profile *profile; in aa_label_destroy() 573 struct aa_profile *p; in aa_label_is_unconfined_subset() 1046 struct aa_profile *next; in label_merge_insert() 1255 struct aa_profile *tp, in match_component() 1293 struct aa_profile *tp; in label_compound_match() 1353 struct aa_profile *tp; in label_components_match() 1546 struct aa_profile *profile; in label_modename() [all …]
|
| A D | domain.c | 93 struct aa_profile *tp, in match_component() 134 struct aa_profile *tp; in label_compound_match() 196 struct aa_profile *tp; in label_components_match() 660 struct aa_profile *profile, in profile_transition() 874 struct aa_profile *profile; in handle_onexec() 922 struct aa_profile *profile; in apparmor_bprm_creds_for_exec() 1056 struct aa_profile *profile, in build_change_hat() 1226 struct aa_profile *profile; in aa_change_hat() 1352 struct aa_profile *profile, in change_profile_perms_wrapper() 1391 struct aa_profile *profile; in aa_change_profile() [all …]
|
| A D | af_unix.c | 172 static aa_state_t match_label(struct aa_profile *profile, in match_label() 174 u32 request, struct aa_profile *peer, in match_label() 225 static int profile_sk_perm(struct aa_profile *profile, in profile_sk_perm() 407 struct aa_profile *peerp; in profile_peer_perm() 433 struct aa_profile *profile; in aa_unix_create_perm() 451 struct aa_profile *profile; in aa_unix_label_sk_perm() 490 struct aa_profile *profile; in aa_unix_bind_perm() 529 struct aa_profile *profile; in aa_unix_listen_perm() 550 struct aa_profile *profile; in aa_unix_accept_perm() 583 struct aa_profile *profile; in aa_unix_opt_perm() [all …]
|
| A D | mount.c | 135 struct aa_profile *profile, const char *op, in audit_mount() 306 struct aa_profile *profile, in match_mnt_path_str() 398 struct aa_profile *profile; in aa_remount() 424 struct aa_profile *profile; in aa_bind_mount() 462 struct aa_profile *profile; in aa_mount_change_type() 489 struct aa_profile *profile; in aa_move_mount() 539 struct aa_profile *profile; in aa_new_mount() 602 struct aa_profile *profile, const struct path *path, in profile_umount() 638 struct aa_profile *profile; in aa_umount() 662 struct aa_profile *profile, in build_pivotroot() [all …]
|
| A D | resource.c | 57 struct aa_profile *profile, unsigned int resource, in audit_resource() 89 struct aa_profile *profile, unsigned int resource, in profile_setrlimit() 118 struct aa_profile *profile; in aa_task_setrlimit() 157 struct aa_profile *old, *new; in __aa_transition_rlimits()
|
| A D | capability.c | 67 static int audit_caps(struct apparmor_audit_data *ad, struct aa_profile *profile, in audit_caps() 121 static int profile_capable(struct aa_profile *profile, int cap, in profile_capable() 182 struct aa_profile *profile; in aa_capable() 194 kernel_cap_t aa_profile_capget(struct aa_profile *profile) in aa_profile_capget()
|
| A D | task.c | 227 struct aa_profile *profile, in profile_ptrace_perm() 243 struct aa_profile *tracee, in profile_tracee_perm() 255 struct aa_profile *tracer, in profile_tracer_perm() 292 struct aa_profile *profile; in aa_may_ptrace() 315 int aa_profile_ns_perm(struct aa_profile *profile, in aa_profile_ns_perm()
|
| A D | apparmorfs.c | 678 struct aa_profile *profile; in query_data() 767 struct aa_profile *profile; in query_label() 1172 struct aa_profile *profile; in seq_ns_nsstacked_show() 1528 struct aa_profile *child; in __aafs_profile_rmdir() 1692 struct aa_profile *child; in __aafs_profile_mkdir() 1700 struct aa_profile *p; in __aafs_profile_mkdir() 1923 struct aa_profile *child; in __aafs_ns_rmdir() 2032 struct aa_profile *child; in __aafs_ns_mkdir() 2156 static struct aa_profile *__next_profile(struct aa_profile *p) in __next_profile() 2158 struct aa_profile *parent; in __next_profile() [all …]
|
| A D | net.c | 165 int aa_do_perms(struct aa_profile *profile, struct aa_policydb *policy, in aa_do_perms() 250 int aa_profile_af_perm(struct aa_profile *profile, in aa_profile_af_perm() 275 struct aa_profile *profile; in aa_af_perm() 295 struct aa_profile *profile; in aa_label_sk_perm() 359 static int aa_secmark_perm(struct aa_profile *profile, u32 request, u32 secid, in aa_secmark_perm() 396 struct aa_profile *profile; in apparmor_secmark_check()
|
| A D | file.c | 96 struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() 153 struct aa_profile *profile; in path_name() 222 struct aa_profile *profile, const char *name, in __aa_path_perm() 243 struct aa_profile *profile, in profile_path_perm() 281 struct aa_profile *profile; in aa_path_perm() 320 struct aa_profile *profile, in profile_path_link() 438 struct aa_profile *profile; in aa_path_link() 483 struct aa_profile *profile; in __file_path_perm()
|
| A D | ipc.c | 79 struct aa_profile *profile, in profile_signal_perm() 106 struct aa_profile *profile; in aa_may_signal()
|
| A D | policy_ns.c | 83 static struct aa_profile *alloc_unconfined(const char *name) in alloc_unconfined() 85 struct aa_profile *profile; in alloc_unconfined() 365 struct aa_profile *kernel_p; in aa_alloc_root_ns()
|