Lines Matching defs:task
31 #include <linux/sched/task.h>
212 * initialise the security for the init task
235 * get the objective security ID of a task
237 static inline u32 task_sid(const struct task_struct *task)
242 sid = cred_sid(__task_cred(task));
1599 /* Check whether a task is allowed to use a capability. */
1637 /* Check whether a task has a particular permission to an inode.
1708 /* Check whether a task can use an open file descriptor to
1781 /* Check whether a task can create a file. */
1828 /* Check whether a task can link, unlink, or rmdir a file/directory. */
1934 /* Check whether a task can perform a filesystem operation. */
2318 /* Default to the current task SID. */
2386 /* Make sure that anyone attempting to ptrace over a task that
2483 /* Close files for which the new task SID is not authorized. */
2491 * task's hard limit and the init task's soft limit.
2494 * controlled by the setrlimit check. The inclusion of the init task's
2536 * This must occur _after_ the task SID has been updated so that any
2556 * wait permission to the new task SID. */
3578 * Check whether a task has the ioctl permission and cmd
3925 /* task security operations */
3927 static int selinux_task_alloc(struct task_struct *task,
6504 /* Check for ptracing, and update the task SID if ok.
7295 /* Set the security state for the initial task. */