/linux-4.4.14/security/apparmor/include/ |
D | policy.h | 77 struct aa_profile; 135 struct aa_profile *unconfined; 156 struct aa_profile __rcu *profile; 198 struct aa_profile { struct 202 struct aa_profile __rcu *parent; argument 230 void aa_add_profile(struct aa_policy *common, struct aa_profile *profile); argument 243 struct aa_profile *aa_alloc_profile(const char *name); 244 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, int hat); 245 void aa_free_profile(struct aa_profile *profile); 247 struct aa_profile *aa_find_child(struct aa_profile *parent, const char *name); [all …]
|
D | context.h | 72 struct aa_profile *profile; 73 struct aa_profile *onexec; 74 struct aa_profile *previous; 82 int aa_replace_current_profile(struct aa_profile *profile); 83 int aa_set_current_onexec(struct aa_profile *profile); 84 int aa_set_current_hat(struct aa_profile *profile, u64 token); 86 struct aa_profile *aa_get_task_profile(struct task_struct *task); 97 static inline struct aa_profile *aa_cred_profile(const struct cred *cred) in aa_cred_profile() 112 static inline struct aa_profile *__aa_task_profile(struct task_struct *task) in __aa_task_profile() 136 static inline struct aa_profile *__aa_current_profile(void) in __aa_current_profile() [all …]
|
D | resource.h | 23 struct aa_profile; 40 int aa_task_setrlimit(struct aa_profile *profile, struct task_struct *, 43 void __aa_transition_rlimits(struct aa_profile *old, struct aa_profile *new);
|
D | apparmorfs.h | 64 struct aa_profile; 96 void __aa_fs_profile_rmdir(struct aa_profile *profile); 97 void __aa_fs_profile_migrate_dents(struct aa_profile *old, 98 struct aa_profile *new); 99 int __aa_fs_profile_mkdir(struct aa_profile *profile, struct dentry *parent);
|
D | ipc.h | 20 struct aa_profile; 22 int aa_may_ptrace(struct aa_profile *tracer, struct aa_profile *tracee,
|
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; 147 int aa_audit_file(struct aa_profile *profile, struct file_perms *perms, 174 int aa_path_perm(int op, struct aa_profile *profile, struct path *path, 177 int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry, 180 int aa_file_perm(int op, struct aa_profile *profile, struct file *file,
|
D | crypto.h | 21 int aa_calc_profile_hash(struct aa_profile *profile, u32 version, void *start, 24 static inline int aa_calc_profile_hash(struct aa_profile *profile, u32 version, in aa_calc_profile_hash()
|
D | capability.h | 22 struct aa_profile; 41 int aa_capable(struct aa_profile *profile, int cap, int audit);
|
D | audit.h | 26 struct aa_profile; 136 int aa_audit(int type, struct aa_profile *profile, gfp_t gfp,
|
D | procattr.h | 21 int aa_getprocattr(struct aa_profile *profile, char **string);
|
/linux-4.4.14/security/apparmor/ |
D | policy.c | 426 struct aa_profile *profile) in __list_add_profile() 445 static void __list_remove_profile(struct aa_profile *profile) in __list_remove_profile() 459 static void __remove_profile(struct aa_profile *profile) in __remove_profile() 477 struct aa_profile *profile, *tmp; in __profile_list_release() 590 void aa_free_profile(struct aa_profile *profile) in aa_free_profile() 623 struct aa_profile *p = container_of(head, struct aa_profile, rcu); in aa_free_profile_rcu() 636 struct aa_profile *p = container_of(kref, struct aa_profile, count); in aa_free_profile_kref() 646 struct aa_profile *aa_alloc_profile(const char *hname) in aa_alloc_profile() 648 struct aa_profile *profile; in aa_alloc_profile() 688 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, int hat) in aa_new_null_profile() [all …]
|
D | ipc.c | 40 static int aa_audit_ptrace(struct aa_profile *profile, in aa_audit_ptrace() 41 struct aa_profile *target, int error) in aa_audit_ptrace() 63 int aa_may_ptrace(struct aa_profile *tracer, struct aa_profile *tracee, in aa_may_ptrace() 97 struct aa_profile *tracer_p = aa_get_task_profile(tracer); in aa_ptrace() 101 struct aa_profile *tracee_p = aa_get_task_profile(tracee); in aa_ptrace()
|
D | apparmorfs.c | 252 struct aa_profile *profile = aa_get_profile_rcu(&r->profile); in aa_fs_seq_profname_show() 275 struct aa_profile *profile = aa_get_profile_rcu(&r->profile); in aa_fs_seq_profmode_show() 298 struct aa_profile *profile = aa_get_profile_rcu(&r->profile); in aa_fs_seq_profattach_show() 326 struct aa_profile *profile = aa_get_profile_rcu(&r->profile); in aa_fs_seq_hash_show() 352 void __aa_fs_profile_rmdir(struct aa_profile *profile) in __aa_fs_profile_rmdir() 354 struct aa_profile *child; in __aa_fs_profile_rmdir() 375 void __aa_fs_profile_migrate_dents(struct aa_profile *old, in __aa_fs_profile_migrate_dents() 376 struct aa_profile *new) in __aa_fs_profile_migrate_dents() 387 struct aa_profile *profile, in create_profile_file() 401 int __aa_fs_profile_mkdir(struct aa_profile *profile, struct dentry *parent) in __aa_fs_profile_mkdir() [all …]
|
D | domain.c | 60 static int may_change_ptraced_domain(struct aa_profile *to_profile) in may_change_ptraced_domain() 63 struct aa_profile *tracerp = NULL; in may_change_ptraced_domain() 95 static struct file_perms change_profile_perms(struct aa_profile *profile, in change_profile_perms() 139 static struct aa_profile *__attach_match(const char *name, in __attach_match() 143 struct aa_profile *profile, *candidate = NULL; in __attach_match() 173 static struct aa_profile *find_attach(struct aa_namespace *ns, in find_attach() 176 struct aa_profile *profile; in find_attach() 239 static struct aa_profile *x_table_lookup(struct aa_profile *profile, u32 xindex) in x_table_lookup() 241 struct aa_profile *new_profile = NULL; in x_table_lookup() 300 static struct aa_profile *x_to_profile(struct aa_profile *profile, in x_to_profile() [all …]
|
D | resource.c | 50 static int audit_resource(struct aa_profile *profile, unsigned int resource, in audit_resource() 91 int aa_task_setrlimit(struct aa_profile *profile, struct task_struct *task, in aa_task_setrlimit() 94 struct aa_profile *task_profile; in aa_task_setrlimit() 121 void __aa_transition_rlimits(struct aa_profile *old, struct aa_profile *new) in __aa_transition_rlimits()
|
D | context.c | 77 struct aa_profile *aa_get_task_profile(struct task_struct *task) in aa_get_task_profile() 79 struct aa_profile *p; in aa_get_task_profile() 94 int aa_replace_current_profile(struct aa_profile *profile) in aa_replace_current_profile() 132 int aa_set_current_onexec(struct aa_profile *profile) in aa_set_current_onexec() 158 int aa_set_current_hat(struct aa_profile *profile, u64 token) in aa_set_current_hat()
|
D | capability.c | 36 struct aa_profile *profile; 65 static int audit_caps(struct aa_profile *profile, int cap, int error) in audit_caps() 117 static int profile_capable(struct aa_profile *profile, int cap) in profile_capable() 132 int aa_capable(struct aa_profile *profile, int cap, int audit) in aa_capable()
|
D | policy_unpack.c | 74 struct aa_profile *name = sa->aad->iface.target; in audit_cb() 92 static int audit_iface(struct aa_profile *new, const char *name, in audit_iface() 95 struct aa_profile *profile = __aa_current_profile(); in audit_iface() 372 static bool unpack_trans_table(struct aa_ext *e, struct aa_profile *profile) in unpack_trans_table() 435 static bool unpack_rlimits(struct aa_ext *e, struct aa_profile *profile) in unpack_rlimits() 475 static struct aa_profile *unpack_profile(struct aa_ext *e) in unpack_profile() 477 struct aa_profile *profile = NULL; in unpack_profile() 703 static int verify_profile(struct aa_profile *profile) in verify_profile() 752 struct aa_profile *profile = NULL; in aa_unpack()
|
D | lsm.c | 111 struct aa_profile *profile; in apparmor_capget() 134 struct aa_profile *profile; in apparmor_capable() 155 struct aa_profile *profile; in common_perm() 295 struct aa_profile *profile; in apparmor_path_link() 310 struct aa_profile *profile; in apparmor_path_rename() 369 struct aa_profile *profile; in apparmor_file_open() 419 struct aa_profile *profile, *fprofile = aa_cred_profile(file->f_cred); in common_file_perm() 501 struct aa_profile *profile = NULL; in apparmor_getprocattr() 599 struct aa_profile *profile = __aa_current_profile(); in apparmor_task_setrlimit()
|
D | audit.c | 133 struct aa_profile *profile = sa->aad->profile; in audit_pre() 172 int aa_audit(int type, struct aa_profile *profile, gfp_t gfp, in aa_audit()
|
D | file.c | 106 int aa_audit_file(struct aa_profile *profile, struct file_perms *perms, in aa_audit_file() 278 int aa_path_perm(int op, struct aa_profile *profile, struct path *path, in aa_path_perm() 348 int aa_path_link(struct aa_profile *profile, struct dentry *old_dentry, in aa_path_link() 448 int aa_file_perm(int op, struct aa_profile *profile, struct file *file, in aa_file_perm()
|
D | crypto.c | 32 int aa_calc_profile_hash(struct aa_profile *profile, u32 version, void *start, in aa_calc_profile_hash()
|
D | procattr.c | 36 int aa_getprocattr(struct aa_profile *profile, char **string) in aa_getprocattr()
|