Lines Matching refs:task
279 static void __init lsm_early_task(struct task_struct *task);
307 init_debug("task blob size = %d\n", blob_sizes.lbs_task);
563 * lsm_task_alloc - allocate a composite task blob
564 * @task: the task that needs a blob
566 * Allocate the task blob for all the modules
570 static int lsm_task_alloc(struct task_struct *task)
573 task->security = NULL;
577 task->security = kzalloc(blob_sizes.lbs_task, GFP_KERNEL);
578 if (task->security == NULL)
626 * lsm_early_task - during initialization allocate a composite task blob
627 * @task: the task that needs a blob
629 * Allocate the task blob for all the modules
631 static void __init lsm_early_task(struct task_struct *task)
633 int rc = lsm_task_alloc(task);
636 panic("%s: Early task alloc failed.\n", __func__);
1505 int security_task_alloc(struct task_struct *task, unsigned long clone_flags)
1507 int rc = lsm_task_alloc(task);
1511 rc = call_int_hook(task_alloc, 0, task, clone_flags);
1513 security_task_free(task);
1517 void security_task_free(struct task_struct *task)
1519 call_void_hook(task_free, task);
1521 kfree(task->security);
1522 task->security = NULL;