/Linux-v4.19/security/apparmor/include/ |
D | policy.h | 133 struct aa_profile { struct 135 struct aa_profile __rcu *parent; argument 175 void aa_add_profile(struct aa_policy *common, struct aa_profile *profile); argument 179 struct aa_profile *aa_alloc_profile(const char *name, struct aa_proxy *proxy, 181 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, bool hat, 183 void aa_free_profile(struct aa_profile *profile); 185 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name); 186 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, 188 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name); 189 struct aa_profile *aa_fqlookupn_profile(struct aa_label *base, [all …]
|
D | perms.h | 121 struct aa_profile *__p2; \ 128 struct aa_profile *__p1; \ 146 void aa_apply_modes_to_perms(struct aa_profile *profile, 152 void aa_profile_match_label(struct aa_profile *profile, struct aa_label *label, 154 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, 157 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, 363 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 | net.h | 89 int aa_profile_af_perm(struct aa_profile *profile, struct common_audit_data *sa, 93 static inline int aa_profile_af_sk_perm(struct aa_profile *profile, in aa_profile_af_sk_perm()
|
D | audit.h | 146 struct aa_profile *profile; 174 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;
|
/Linux-v4.19/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() 258 struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, in aa_alloc_profile() 261 struct aa_profile *profile; in aa_alloc_profile() 264 profile = kzalloc(sizeof(*profile) + sizeof(struct aa_profile *) * 2, in aa_alloc_profile() 308 static struct aa_profile *__strn_find_child(struct list_head *head, in __strn_find_child() 311 return (struct aa_profile *)__policy_strn_find(head, name, len); in __strn_find_child() [all …]
|
D | domain.c | 101 static inline unsigned int match_component(struct aa_profile *profile, in match_component() 102 struct aa_profile *tp, in match_component() 136 static int label_compound_match(struct aa_profile *profile, in label_compound_match() 141 struct aa_profile *tp; in label_compound_match() 196 static int label_components_match(struct aa_profile *profile, in label_components_match() 201 struct aa_profile *tp; in label_components_match() 257 static int label_match(struct aa_profile *profile, struct aa_label *label, in label_match() 290 static int change_profile_perms(struct aa_profile *profile, in change_profile_perms() 314 struct aa_profile *profile, unsigned int state) in aa_xattrs_match() 383 static struct aa_profile *__attach_match(const struct linux_binprm *bprm, 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 | 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() 190 static int profile_signal_perm(struct aa_profile *profile, in profile_signal_perm() 213 struct aa_profile *profile; in aa_may_signal()
|
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() 295 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags() 318 static int match_mnt_path_str(struct aa_profile *profile, in match_mnt_path_str() 375 static int match_mnt(struct aa_profile *profile, const struct path *path, in match_mnt() 404 struct aa_profile *profile; in aa_remount() 426 struct aa_profile *profile; in aa_bind_mount() 456 struct aa_profile *profile; in aa_mount_change_type() 479 struct aa_profile *profile; in aa_move_mount() 508 struct aa_profile *profile; in aa_new_mount() 556 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 | 603 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb() 660 struct aa_profile *profile; in query_data() 749 struct aa_profile *profile; in query_label() 1063 struct aa_profile *profile = labels_profile(label); in seq_profile_name_show() 1074 struct aa_profile *profile = labels_profile(label); in seq_profile_mode_show() 1085 struct aa_profile *profile = labels_profile(label); in seq_profile_attach_show() 1101 struct aa_profile *profile = labels_profile(label); in seq_profile_hash_show() 1153 struct aa_profile *profile; in seq_ns_nsstacked_show() 1410 void __aafs_profile_rmdir(struct aa_profile *profile) in __aafs_profile_rmdir() 1412 struct aa_profile *child; in __aafs_profile_rmdir() [all …]
|
D | net.c | 109 int aa_profile_af_perm(struct aa_profile *profile, struct common_audit_data *sa, in aa_profile_af_perm() 138 struct aa_profile *profile; in aa_af_perm() 149 struct aa_profile *profile; in aa_label_sk_perm()
|
D | file.c | 105 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() 174 struct aa_profile *profile; in path_name() 281 int __aa_path_perm(const char *op, struct aa_profile *profile, const char *name, in __aa_path_perm() 297 static int profile_path_perm(const char *op, struct aa_profile *profile, in profile_path_perm() 333 struct aa_profile *profile; in aa_path_perm() 369 static int profile_path_link(struct aa_profile *profile, in profile_path_link() 478 struct aa_profile *profile; in aa_path_link() 516 struct aa_profile *profile; in __file_path_perm()
|
D | lib.c | 292 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms() 383 void aa_profile_match_label(struct aa_profile *profile, struct aa_label *label, in aa_profile_match_label() 397 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, in aa_profile_label_perm() 431 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms()
|
D | policy_unpack.c | 108 static int audit_iface(struct aa_profile *new, const char *ns_name, in audit_iface() 112 struct aa_profile *profile = labels_profile(aa_current_raw_label()); in audit_iface() 434 static bool unpack_trans_table(struct aa_ext *e, struct aa_profile *profile) in unpack_trans_table() 503 static bool unpack_xattrs(struct aa_ext *e, struct aa_profile *profile) in unpack_xattrs() 532 static bool unpack_rlimits(struct aa_ext *e, struct aa_profile *profile) in unpack_rlimits() 587 static struct aa_profile *unpack_profile(struct aa_ext *e, char **ns_name) in unpack_profile() 589 struct aa_profile *profile = NULL; in unpack_profile() 921 static int verify_profile(struct aa_profile *profile) in verify_profile() 969 struct aa_profile *profile = NULL; in aa_unpack()
|