函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cred.c Create Date:2022-07-27 10:33:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cred_cap_issubset

函数原型:static bool cred_cap_issubset(const struct cred *set, const struct cred *subset)

返回类型:bool

参数:

类型参数名称
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  如果set_ns恒等于subset_ns则返回: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 subset_ns不等于userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?循环
412  如果set_ns恒等于parentuid_eq(owner, 有效uid)则返回:true
417  返回:false
调用者
名称描述
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