/linux-6.12.1/security/apparmor/include/ |
D | policy.h | 224 struct aa_profile { struct 226 struct aa_profile __rcu *parent; argument 257 struct aa_profile *aa_alloc_profile(const char *name, struct aa_proxy *proxy, argument 259 struct aa_profile *aa_alloc_null(struct aa_profile *parent, const char *name, 261 struct aa_profile *aa_new_learning_profile(struct aa_profile *parent, bool hat, 263 void aa_free_profile(struct aa_profile *profile); 264 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name); 265 struct aa_profile *aa_lookupn_profile(struct aa_ns *ns, const char *hname, 267 struct aa_profile *aa_lookup_profile(struct aa_ns *ns, const char *name); 268 struct aa_profile *aa_fqlookupn_profile(struct aa_label *base, [all …]
|
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);
|
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_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, 219 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms,
|
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)) 132 struct aa_profile *vec[]; 260 struct aa_profile *profile; \ 285 struct aa_profile *__aa_label_next_not_in_set(struct label_it *I, 296 struct aa_profile *aa_label_next_in_merge(struct label_it *I, 361 int aa_label_match(struct aa_profile *profile, struct aa_ruleset *rules,
|
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()
|
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()
|
D | policy_unpack.h | 22 struct aa_profile *new; 23 struct aa_profile *old; 24 struct aa_profile *rename;
|
D | file.h | 21 struct aa_profile; 75 struct aa_profile *profile, struct aa_perms *perms,
|
D | net.h | 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()
|
D | audit.h | 148 struct aa_profile *profile; 183 int aa_audit(int type, struct aa_profile *profile,
|
D | domain.h | 25 struct aa_label *x_table_lookup(struct aa_profile *profile, u32 xindex,
|
/linux-6.12.1/security/apparmor/ |
D | policy.c | 147 static void __add_profile(struct list_head *list, struct aa_profile *profile) in __add_profile() 176 static void __list_remove_profile(struct aa_profile *profile) in __list_remove_profile() 192 static void __remove_profile(struct aa_profile *profile) in __remove_profile() 214 struct aa_profile *profile, *tmp; in __aa_profile_list_release() 279 void aa_free_profile(struct aa_profile *profile) in aa_free_profile() 331 struct aa_profile *aa_alloc_profile(const char *hname, struct aa_proxy *proxy, in aa_alloc_profile() 334 struct aa_profile *profile; in aa_alloc_profile() 389 static struct aa_profile *__strn_find_child(struct list_head *head, in __strn_find_child() 392 return (struct aa_profile *)__policy_strn_find(head, name, len); in __strn_find_child() 404 static struct aa_profile *__find_child(struct list_head *head, const char *name) in __find_child() [all …]
|
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() 187 static bool vec_is_stale(struct aa_profile **vec, int n) in vec_is_stale() 201 static long accum_vec_flags(struct aa_profile **vec, int n) in accum_vec_flags() 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() 267 int aa_vec_unique(struct aa_profile **vec, int n, int flags) in aa_vec_unique() 276 sort(vec, n, sizeof(struct aa_profile *), sort_cmp, NULL); in aa_vec_unique() 283 struct aa_profile *tmp = vec[i]; in aa_vec_unique() 322 struct aa_profile *profile; in aa_label_destroy() [all …]
|
D | domain.c | 87 static inline aa_state_t match_component(struct aa_profile *profile, in match_component() 88 struct aa_profile *tp, in match_component() 124 static int label_compound_match(struct aa_profile *profile, in label_compound_match() 131 struct aa_profile *tp; in label_compound_match() 186 static int label_components_match(struct aa_profile *profile, in label_components_match() 193 struct aa_profile *tp; in label_components_match() 249 static int label_match(struct aa_profile *profile, struct aa_label *label, in label_match() 283 static int change_profile_perms(struct aa_profile *profile, in change_profile_perms() 307 struct aa_profile *profile, aa_state_t state) in aa_xattrs_match() 391 struct aa_profile *profile, *candidate = NULL; in find_attach() [all …]
|
D | capability.c | 33 struct aa_profile *profile; 64 static int audit_caps(struct apparmor_audit_data *ad, struct aa_profile *profile, in audit_caps() 116 static int profile_capable(struct aa_profile *profile, int cap, in profile_capable() 155 struct aa_profile *profile; in aa_capable()
|
D | mount.c | 135 struct aa_profile *profile, const char *op, in audit_mount() 281 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags() 306 struct aa_profile *profile, in match_mnt_path_str() 368 struct aa_profile *profile, const struct path *path, in match_mnt() 400 struct aa_profile *profile; in aa_remount() 426 struct aa_profile *profile; in aa_bind_mount() 464 struct aa_profile *profile; in aa_mount_change_type() 491 struct aa_profile *profile; in aa_move_mount() 541 struct aa_profile *profile; in aa_new_mount() 604 struct aa_profile *profile, const struct path *path, in profile_umount() [all …]
|
D | apparmorfs.c | 612 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb() 670 struct aa_profile *profile; in query_data() 759 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() 1518 void __aafs_profile_rmdir(struct aa_profile *profile) in __aafs_profile_rmdir() 1520 struct aa_profile *child; in __aafs_profile_rmdir() [all …]
|
D | task.c | 227 struct aa_profile *profile, in profile_ptrace_perm() 244 struct aa_profile *tracee, in profile_tracee_perm() 256 struct aa_profile *tracer, in profile_tracer_perm() 293 struct aa_profile *profile; in aa_may_ptrace() 316 int aa_profile_ns_perm(struct aa_profile *profile, in aa_profile_ns_perm()
|
D | net.c | 109 int aa_profile_af_perm(struct aa_profile *profile, in aa_profile_af_perm() 141 struct aa_profile *profile; in aa_af_perm() 161 struct aa_profile *profile; in aa_label_sk_perm() 221 static int aa_secmark_perm(struct aa_profile *profile, u32 request, u32 secid, in aa_secmark_perm() 259 struct aa_profile *profile; in apparmor_secmark_check()
|
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() 119 struct aa_profile *profile; in aa_task_setrlimit() 158 struct aa_profile *old, *new; in __aa_transition_rlimits()
|
D | lib.c | 312 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms() 337 void aa_profile_match_label(struct aa_profile *profile, in aa_profile_match_label() 353 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, in aa_profile_label_perm() 388 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms()
|
D | file.c | 95 struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() 152 struct aa_profile *profile; in path_name() 216 struct aa_profile *profile, const char *name, in __aa_path_perm() 237 struct aa_profile *profile, in profile_path_perm() 275 struct aa_profile *profile; in aa_path_perm() 314 struct aa_profile *profile, in profile_path_link() 431 struct aa_profile *profile; in aa_path_link() 476 struct aa_profile *profile; in __file_path_perm()
|
D | ipc.c | 79 struct aa_profile *profile, in profile_signal_perm() 107 struct aa_profile *profile; in aa_may_signal()
|
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()
|
D | audit.c | 120 struct aa_profile *profile = labels_profile(label); in audit_pre() 166 int aa_audit(int type, struct aa_profile *profile, in aa_audit()
|