Home
last modified time | relevance | path

Searched refs:task (Results 1 – 18 of 18) sorted by relevance

/security/landlock/
A Dcred.h77 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 DMakefile4 cred.o task.o fs.o
/security/apparmor/include/
A Dtask.h13 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 Dresource.h37 struct task_struct *task,
/security/tomoyo/
A Dtomoyo.c516 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 Dsecurityfs_if.c25 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 Dcommon.h492 } 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 Dcommon.c933 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 Dresource.c115 struct task_struct *task, in aa_task_setrlimit() argument
123 peer = aa_get_newest_cred_label(__task_cred(task)); in aa_task_setrlimit()
A Dtask.c29 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 DMakefile6 apparmor-y := apparmorfs.o audit.o capability.o task.o ipc.o lib.o match.o \
A Dlsm.c108 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 Dyama_lsm.c205 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 Dsecurity.c425 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 Ddevice_cgroup.c54 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 DKconfig.hardening144 If this is set, KSTACK_ERASE metrics for every task are available
/security/smack/
A Dsmack_lsm.c323 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 Dhooks.c260 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

Completed in 63 milliseconds