| /security/landlock/ |
| A D | cred.h | 77 landlock_get_task_domain(const struct task_struct *const task) in landlock_get_task_domain() argument 79 return landlock_cred(__task_cred(task))->domain; in landlock_get_task_domain() 82 static inline bool landlocked(const struct task_struct *const task) in landlocked() argument 86 if (task == current) in landlocked() 90 has_dom = !!landlock_get_task_domain(task); in landlocked()
|
| A D | Makefile | 4 cred.o task.o fs.o
|
| /security/apparmor/include/ |
| A D | task.h | 13 static inline struct aa_task_ctx *task_ctx(struct task_struct *task) in task_ctx() argument 15 return task->security + apparmor_blob_sizes.lbs_task; in task_ctx() 36 struct aa_label *aa_get_task_label(struct task_struct *task);
|
| A D | resource.h | 37 struct task_struct *task,
|
| /security/tomoyo/ |
| A D | tomoyo.c | 516 static int tomoyo_task_alloc(struct task_struct *task, in tomoyo_task_alloc() argument 520 struct tomoyo_task *new = tomoyo_task(task); in tomoyo_task_alloc() 533 static void tomoyo_task_free(struct task_struct *task) in tomoyo_task_free() argument 535 struct tomoyo_task *s = tomoyo_task(task); in tomoyo_task_free()
|
| A D | securityfs_if.c | 25 return !tomoyo_pathcmp(r->param.task.domainname, acl->domainname); in tomoyo_check_task_acl() 63 r.param.task.domainname = &name; in tomoyo_write_self()
|
| A D | common.h | 492 } task; member 1217 static inline struct tomoyo_task *tomoyo_task(struct task_struct *task) in tomoyo_task() argument 1219 return task->security + tomoyo_blob_sizes.lbs_task; in tomoyo_task()
|
| A D | common.c | 933 const struct task_struct *task = current; in tomoyo_manager() local 940 (!uid_eq(task->cred->uid, GLOBAL_ROOT_UID) || in tomoyo_manager() 941 !uid_eq(task->cred->euid, GLOBAL_ROOT_UID))) in tomoyo_manager()
|
| /security/apparmor/ |
| A D | resource.c | 115 struct task_struct *task, in aa_task_setrlimit() argument 123 peer = aa_get_newest_cred_label(__task_cred(task)); in aa_task_setrlimit()
|
| A D | task.c | 29 struct aa_label *aa_get_task_label(struct task_struct *task) in aa_get_task_label() argument 34 p = aa_get_newest_cred_label(__task_cred(task)); in aa_get_task_label()
|
| A D | Makefile | 6 apparmor-y := apparmorfs.o audit.o capability.o task.o ipc.o lib.o match.o \
|
| A D | lsm.c | 108 static void apparmor_task_free(struct task_struct *task) in apparmor_task_free() argument 111 aa_free_task_ctx(task_ctx(task)); in apparmor_task_free() 114 static int apparmor_task_alloc(struct task_struct *task, in apparmor_task_alloc() argument 117 struct aa_task_ctx *new = task_ctx(task); in apparmor_task_alloc() 828 static int apparmor_getprocattr(struct task_struct *task, const char *name, in apparmor_getprocattr() argument 833 const struct cred *cred = get_task_cred(task); in apparmor_getprocattr() 1010 static int apparmor_task_setrlimit(struct task_struct *task, in apparmor_task_setrlimit() argument 1020 error = aa_task_setrlimit(current_cred(), label, task, in apparmor_task_setrlimit()
|
| /security/yama/ |
| A D | yama_lsm.c | 205 static void yama_task_free(struct task_struct *task) in yama_task_free() argument 207 yama_ptracer_del(task, task); in yama_task_free()
|
| /security/ |
| A D | security.c | 425 static void __init lsm_early_task(struct task_struct *task); 769 static int lsm_task_alloc(struct task_struct *task) in lsm_task_alloc() argument 844 static void __init lsm_early_task(struct task_struct *task) in lsm_early_task() argument 846 int rc = lsm_task_alloc(task); in lsm_early_task() 3190 int rc = lsm_task_alloc(task); in security_task_alloc() 3194 rc = call_int_hook(task_alloc, task, clone_flags); in security_task_alloc() 3196 security_task_free(task); in security_task_alloc() 3207 void security_task_free(struct task_struct *task) in security_task_free() argument 3209 call_void_hook(task_free, task); in security_task_free() 3211 kfree(task->security); in security_task_free() [all …]
|
| A D | device_cgroup.c | 54 static inline struct dev_cgroup *task_devcgroup(struct task_struct *task) in task_devcgroup() argument 56 return css_to_devcgroup(task_css(task, devices_cgrp_id)); in task_devcgroup()
|
| A D | Kconfig.hardening | 144 If this is set, KSTACK_ERASE metrics for every task are available
|
| /security/smack/ |
| A D | smack_lsm.c | 323 static void init_task_smack(struct task_smack *tsp, struct smack_known *task, in init_task_smack() argument 326 tsp->smk_task = task; in init_task_smack()
|
| /security/selinux/ |
| A D | hooks.c | 260 static inline u32 task_sid_obj(const struct task_struct *task) in task_sid_obj() argument 265 sid = cred_sid(__task_cred(task)); in task_sid_obj() 4146 static int selinux_task_alloc(struct task_struct *task, in selinux_task_alloc() argument
|