/linux/security/apparmor/include/ |
A D | policy.h | 129 struct aa_profile { struct 131 struct aa_profile __rcu *parent; argument 180 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat, 182 void aa_free_profile(struct aa_profile *profile); 184 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name); 211 static inline struct aa_profile *aa_get_newest_profile(struct aa_profile *p) in aa_get_newest_profile() 243 static inline struct aa_profile *aa_get_profile(struct aa_profile *p) in aa_get_profile() 258 static inline struct aa_profile *aa_get_profile_not0(struct aa_profile *p) in aa_get_profile_not0() 273 static inline struct aa_profile *aa_get_profile_rcu(struct aa_profile __rcu **p) in aa_get_profile_rcu() 275 struct aa_profile *c; in aa_get_profile_rcu() [all …]
|
A D | perms.h | 117 struct aa_profile *__p2; \ 124 struct aa_profile *__p1; \ 142 void aa_apply_modes_to_perms(struct aa_profile *profile, 148 void aa_profile_match_label(struct aa_profile *profile, struct aa_label *label, 150 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, 153 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms,
|
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 | 56 struct aa_profile; 58 int aa_vec_unique(struct aa_profile **vec, int n, int flags); 59 struct aa_label *aa_vec_find_or_create_label(struct aa_profile **vec, int len, 62 aa_sort_and_merge_profiles((N), (struct aa_profile **)(V)) 130 struct aa_profile *vec[]; 258 struct aa_profile *profile; \ 283 struct aa_profile *__aa_label_next_not_in_set(struct label_it *I, 294 struct aa_profile *aa_label_next_in_merge(struct label_it *I, 358 int aa_label_match(struct aa_profile *profile, struct aa_label *label,
|
A D | policy_unpack.h | 21 struct aa_profile *new; 22 struct aa_profile *old; 23 struct aa_profile *rename;
|
A D | policy_ns.h | 63 struct aa_profile *unconfined; 99 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 | file.h | 20 struct aa_profile; 159 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, 189 int __aa_path_perm(const char *op, struct aa_profile *profile,
|
A D | audit.h | 142 struct aa_profile *profile; 170 int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa,
|
A D | net.h | 92 int aa_profile_af_perm(struct aa_profile *profile, struct common_audit_data *sa, 96 static inline int aa_profile_af_sk_perm(struct aa_profile *profile, in aa_profile_af_sk_perm()
|
A D | resource.h | 19 struct aa_profile;
|
A D | domain.h | 30 struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex,
|
/linux/security/apparmor/ |
A D | policy.c | 260 struct aa_profile *profile; in aa_alloc_profile() 333 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name) in aa_find_child() 335 struct aa_profile *profile; in aa_find_child() 502 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat, in aa_new_null_profile() 781 static void __replace_profile(struct aa_profile *old, struct aa_profile *new) in __replace_profile() 790 struct aa_profile *p; in __replace_profile() 853 static void share_name(struct aa_profile *old, struct aa_profile *new) in share_name() 865 static struct aa_profile *update_to_newest_parent(struct aa_profile *new) in update_to_newest_parent() 996 struct aa_profile *p; in aa_replace_profiles() 1006 struct aa_profile *p = (struct aa_profile *) policy; in aa_replace_profiles() [all …]
|
A D | domain.c | 100 struct aa_profile *tp, in match_component() 139 struct aa_profile *tp; in label_compound_match() 199 struct aa_profile *tp; in label_components_match() 527 struct aa_profile *new_profile; in x_table_lookup() 800 struct aa_profile *profile; in handle_onexec() 858 struct aa_profile *profile; in apparmor_bprm_creds_for_exec() 991 struct aa_profile *root, *hat = NULL; in build_change_hat() 1154 struct aa_profile *profile; in aa_change_hat() 1262 struct aa_profile *profile, in change_profile_perms_wrapper() 1297 struct aa_profile *profile; in aa_change_profile() [all …]
|
A D | label.c | 135 static int profile_cmp(struct aa_profile *a, struct aa_profile *b) in profile_cmp() 165 static int vec_cmp(struct aa_profile **a, int an, struct aa_profile **b, int bn) in vec_cmp() 216 return profile_cmp(*(struct aa_profile **)a, *(struct aa_profile **)b); in sort_cmp() 317 struct aa_profile *profile; in aa_label_destroy() 564 struct aa_profile *p; in aa_label_is_unconfined_subset() 1005 struct aa_profile *p = NULL; in label_merge_cmp() 1052 struct aa_profile *next; in label_merge_insert() 1305 struct aa_profile *tp; in label_compound_match() 1363 struct aa_profile *tp; in label_components_match() 1555 struct aa_profile *profile; in label_modename() [all …]
|
A D | ipc.c | 63 static int profile_ptrace_perm(struct aa_profile *profile, in profile_ptrace_perm() 76 static int profile_tracee_perm(struct aa_profile *tracee, in profile_tracee_perm() 87 static int profile_tracer_perm(struct aa_profile *tracer, in profile_tracer_perm() 121 struct aa_profile *profile; in aa_may_ptrace() 187 static int profile_signal_perm(struct aa_profile *profile, in profile_signal_perm() 210 struct aa_profile *profile; in aa_may_signal()
|
A D | mount.c | 130 static int audit_mount(struct aa_profile *profile, const char *op, in audit_mount() 315 static int match_mnt_path_str(struct aa_profile *profile, in match_mnt_path_str() 372 static int match_mnt(struct aa_profile *profile, const struct path *path, in match_mnt() 401 struct aa_profile *profile; in aa_remount() 425 struct aa_profile *profile; in aa_bind_mount() 462 struct aa_profile *profile; in aa_mount_change_type() 487 struct aa_profile *profile; in aa_move_mount() 522 struct aa_profile *profile; in aa_new_mount() 615 struct aa_profile *profile; in aa_umount() 638 static struct aa_label *build_pivotroot(struct aa_profile *profile, in build_pivotroot() [all …]
|
A D | capability.c | 33 struct aa_profile *profile; 64 static int audit_caps(struct common_audit_data *sa, struct aa_profile *profile, in audit_caps() 114 static int profile_capable(struct aa_profile *profile, int cap, in profile_capable() 149 struct aa_profile *profile; in aa_capable()
|
A D | apparmorfs.c | 665 struct aa_profile *profile; in query_data() 754 struct aa_profile *profile; in query_label() 1157 struct aa_profile *profile; in seq_ns_nsstacked_show() 1504 struct aa_profile *child; in __aafs_profile_rmdir() 1668 struct aa_profile *child; in __aafs_profile_mkdir() 1676 struct aa_profile *p; in __aafs_profile_mkdir() 1890 struct aa_profile *child; in __aafs_ns_rmdir() 1999 struct aa_profile *child; in __aafs_ns_mkdir() 2123 static struct aa_profile *__next_profile(struct aa_profile *p) in __next_profile() 2125 struct aa_profile *parent; in __next_profile() [all …]
|
A D | net.c | 108 int aa_profile_af_perm(struct aa_profile *profile, struct common_audit_data *sa, in aa_profile_af_perm() 137 struct aa_profile *profile; in aa_af_perm() 154 struct aa_profile *profile; in aa_label_sk_perm() 213 static int aa_secmark_perm(struct aa_profile *profile, u32 request, u32 secid, in aa_secmark_perm() 249 struct aa_profile *profile; in apparmor_secmark_check()
|
A D | resource.c | 52 static int audit_resource(struct aa_profile *profile, unsigned int resource, in audit_resource() 81 static int profile_setrlimit(struct aa_profile *profile, unsigned int resource, in profile_setrlimit() 107 struct aa_profile *profile; in aa_task_setrlimit() 145 struct aa_profile *old, *new; in __aa_transition_rlimits()
|
A D | file.c | 92 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() 161 struct aa_profile *profile; in path_name() 268 int __aa_path_perm(const char *op, struct aa_profile *profile, const char *name, in __aa_path_perm() 284 static int profile_path_perm(const char *op, struct aa_profile *profile, in profile_path_perm() 320 struct aa_profile *profile; in aa_path_perm() 358 static int profile_path_link(struct aa_profile *profile, in profile_path_link() 467 struct aa_profile *profile; in aa_path_link() 511 struct aa_profile *profile; in __file_path_perm()
|
A D | lib.c | 290 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms() 381 void aa_profile_match_label(struct aa_profile *profile, struct aa_label *label, in aa_profile_match_label() 395 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, in aa_profile_label_perm() 429 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms()
|
A D | policy_unpack.c | 105 static int audit_iface(struct aa_profile *new, const char *ns_name, in audit_iface() 109 struct aa_profile *profile = labels_profile(aa_current_raw_label()); in audit_iface() 477 static bool unpack_trans_table(struct aa_ext *e, struct aa_profile *profile) in unpack_trans_table() 546 static bool unpack_xattrs(struct aa_ext *e, struct aa_profile *profile) in unpack_xattrs() 575 static bool unpack_secmark(struct aa_ext *e, struct aa_profile *profile) in unpack_secmark() 619 static bool unpack_rlimits(struct aa_ext *e, struct aa_profile *profile) in unpack_rlimits() 674 static struct aa_profile *unpack_profile(struct aa_ext *e, char **ns_name) in unpack_profile() 676 struct aa_profile *profile = NULL; in unpack_profile() 1020 static int verify_profile(struct aa_profile *profile) in verify_profile() 1167 struct aa_profile *profile = NULL; in aa_unpack()
|
A D | audit.c | 78 struct aa_profile *profile = labels_profile(label); in audit_pre() 123 int aa_audit(int type, struct aa_profile *profile, struct common_audit_data *sa, in aa_audit()
|