Home
last modified time | relevance | path

Searched refs:aa_profile (Results 1 – 24 of 24) sorted by relevance

/linux-4.1.27/security/apparmor/include/
Dpolicy.h77 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 …]
Dcontext.h72 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 …]
Dresource.h23 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);
Dapparmorfs.h64 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);
Dipc.h20 struct aa_profile;
22 int aa_may_ptrace(struct aa_profile *tracer, struct aa_profile *tracee,
Dpolicy_unpack.h22 struct aa_profile *new;
23 struct aa_profile *old;
24 struct aa_profile *rename;
Dfile.h21 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,
Dcrypto.h21 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()
Dcapability.h22 struct aa_profile;
41 int aa_capable(struct aa_profile *profile, int cap, int audit);
Daudit.h26 struct aa_profile;
136 int aa_audit(int type, struct aa_profile *profile, gfp_t gfp,
Dprocattr.h21 int aa_getprocattr(struct aa_profile *profile, char **string);
/linux-4.1.27/security/apparmor/
Dpolicy.c426 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 …]
Dipc.c40 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()
Dapparmorfs.c252 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 …]
Ddomain.c60 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 …]
Dresource.c50 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()
Dcontext.c77 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()
Dcapability.c36 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()
Dpolicy_unpack.c74 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()
Dlsm.c119 struct aa_profile *profile; in apparmor_capget()
142 struct aa_profile *profile; in apparmor_capable()
165 struct aa_profile *profile; in common_perm()
305 struct aa_profile *profile; in apparmor_path_link()
320 struct aa_profile *profile; in apparmor_path_rename()
379 struct aa_profile *profile; in apparmor_file_open()
429 struct aa_profile *profile, *fprofile = aa_cred_profile(file->f_cred); in common_file_perm()
511 struct aa_profile *profile = NULL; in apparmor_getprocattr()
609 struct aa_profile *profile = __aa_current_profile(); in apparmor_task_setrlimit()
Daudit.c133 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()
Dfile.c106 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()
Dcrypto.c32 int aa_calc_profile_hash(struct aa_profile *profile, u32 version, void *start, in aa_calc_profile_hash()
Dprocattr.c36 int aa_getprocattr(struct aa_profile *profile, char **string) in aa_getprocattr()