函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\capability.h Create Date:2022-07-27 06:41:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:cap_drop

函数原型:static inline kernel_cap_t cap_drop(const kernel_cap_t a, const kernel_cap_t drop)

返回类型:kernel_cap_t

参数:

类型参数名称
const kernel_cap_ta
const kernel_cap_tdrop
138  CAP_BOP_ALL(dest, a, drop, & ~)
139  返回:dest
调用者
名称描述
cap_issubsetCheck 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
cap_drop_fs_setUsed to decide between falling back on the old suser() or fsuser().
cap_drop_nfsd_set