Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sys.c Create Date:2022-07-28 09:19:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Returns true if current's euid is same as p's uid or euid,* or has CAP_SYS_NICE to p's user_ns.* Called with rcu_read_lock, creds are safe

Proto:static bool set_one_prio_perm(struct task_struct *p)

Type:bool

Parameter:

TypeParameterName
struct task_struct *p
158  cred = current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.() , pcred = __task_cred - Access a task's objective credentials*@task: The task to query* Access the objective credentials of a task. The caller must hold the RCU* readlock.* The result of this function should not be passed directly to get_cred();(p)
160  If uid_eq( real UID of the task , effective UID of the task ) || uid_eq( effective UID of the task , effective UID of the task ) Then Return true
163  If ns_capable( user_ns the caps and keyrings are relative to. , Allow setting cpu affinity on other processes ) Then Return true
165  Return false
Caller
NameDescribe
set_one_prioset the priority of a task* - the caller must hold the RCU read lock