Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cred_cap_issubset

Proto:static bool cred_cap_issubset(const struct cred *set, const struct cred *subset)

Type:bool

Parameter:

TypeParameterName
const struct cred *set
const struct cred *subset
397  set_ns = user_ns the caps and keyrings are relative to.
398  subset_ns = user_ns the caps and keyrings are relative to.
403  If set_ns == subset_ns Then Return Check if "a" is a subset of "set".* return true if ALL of the capabilities in "a" are also in "set"* cap_issubset(0101, 1111) will return true* return false if ANY of the capabilities in "a" are not in "set"* cap_issubset(1111, 0101) will return false
411  When subset_ns != userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ? cycle
412  If set_ns == parent && uid_eq(owner, effective UID of the task ) Then Return true
417  Return false
Caller
NameDescribe
commit_credsmmit_creds - Install new credentials upon the current task*@new: The credentials to be assigned* Install a new set of credentials to the current task, using RCU to replace* the old set. Both the objective and the subjective credentials pointers are