Home
last modified time | relevance | path

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

/security/apparmor/include/
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);
Dcred.h74 static inline struct aa_label *__aa_task_raw_label(struct task_struct *task) in __aa_task_raw_label() argument
76 return aa_cred_raw_label(__task_cred(task)); in __aa_task_raw_label()
Dresource.h36 int aa_task_setrlimit(struct aa_label *label, struct task_struct *task,
/security/apparmor/
Dtask.c24 struct aa_label *aa_get_task_label(struct task_struct *task) in aa_get_task_label() argument
29 p = aa_get_newest_label(__aa_task_raw_label(task)); in aa_get_task_label()
Dresource.c104 int aa_task_setrlimit(struct aa_label *label, struct task_struct *task, in aa_task_setrlimit() argument
112 peer = aa_get_newest_cred_label(__task_cred(task)); in aa_task_setrlimit()
Dlsm.c89 static void apparmor_task_free(struct task_struct *task) in apparmor_task_free() argument
92 aa_free_task_ctx(task_ctx(task)); in apparmor_task_free()
95 static int apparmor_task_alloc(struct task_struct *task, in apparmor_task_alloc() argument
98 struct aa_task_ctx *new = task_ctx(task); in apparmor_task_alloc()
575 static int apparmor_getprocattr(struct task_struct *task, char *name, in apparmor_getprocattr() argument
580 const struct cred *cred = get_task_cred(task); in apparmor_getprocattr()
716 static int apparmor_task_setrlimit(struct task_struct *task, in apparmor_task_setrlimit() argument
723 error = aa_task_setrlimit(label, task, resource, new_rlim); in apparmor_task_setrlimit()
DMakefile6 apparmor-y := apparmorfs.o audit.o capability.o task.o ipc.o lib.o match.o \
/security/tomoyo/
Dtomoyo.c501 static int tomoyo_task_alloc(struct task_struct *task, in tomoyo_task_alloc() argument
505 struct tomoyo_task *new = tomoyo_task(task); in tomoyo_task_alloc()
518 static void tomoyo_task_free(struct task_struct *task) in tomoyo_task_free() argument
520 struct tomoyo_task *s = tomoyo_task(task); in tomoyo_task_free()
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()
Dcommon.h492 } task; member
1220 static inline struct tomoyo_task *tomoyo_task(struct task_struct *task) in tomoyo_task() argument
1222 return task->security + tomoyo_blob_sizes.lbs_task; in tomoyo_task()
Dcommon.c941 const struct task_struct *task = current; in tomoyo_manager() local
948 (!uid_eq(task->cred->uid, GLOBAL_ROOT_UID) || in tomoyo_manager()
949 !uid_eq(task->cred->euid, GLOBAL_ROOT_UID))) in tomoyo_manager()
/security/yama/
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/
Dsecurity.c279 static void __init lsm_early_task(struct task_struct *task);
570 static int lsm_task_alloc(struct task_struct *task) in lsm_task_alloc() argument
573 task->security = NULL; in lsm_task_alloc()
577 task->security = kzalloc(blob_sizes.lbs_task, GFP_KERNEL); in lsm_task_alloc()
578 if (task->security == NULL) in lsm_task_alloc()
631 static void __init lsm_early_task(struct task_struct *task) in lsm_early_task() argument
633 int rc = lsm_task_alloc(task); in lsm_early_task()
1505 int security_task_alloc(struct task_struct *task, unsigned long clone_flags) in security_task_alloc() argument
1507 int rc = lsm_task_alloc(task); in security_task_alloc()
1511 rc = call_int_hook(task_alloc, 0, task, clone_flags); in security_task_alloc()
[all …]
Ddevice_cgroup.c51 static inline struct dev_cgroup *task_devcgroup(struct task_struct *task) in task_devcgroup() argument
53 return css_to_devcgroup(task_css(task, devices_cgrp_id)); in task_devcgroup()
DKconfig.hardening155 If this is set, STACKLEAK metrics for every task are available in
/security/smack/
Dsmack_lsm.c331 static void init_task_smack(struct task_smack *tsp, struct smack_known *task, in init_task_smack() argument
334 tsp->smk_task = task; in init_task_smack()
/security/selinux/
Dhooks.c231 static inline u32 task_sid(const struct task_struct *task) in task_sid() argument
236 sid = cred_sid(__task_cred(task)); in task_sid()
3875 static int selinux_task_alloc(struct task_struct *task, in selinux_task_alloc() argument