函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:rootid_from_xattr

函数原型:static kuid_t rootid_from_xattr(const void *value, size_t size, struct user_namespace *task_ns)

返回类型:kuid_t

参数:

类型参数名称
const void *value
size_tsize
struct user_namespace *task_ns
456  nscap等于value
457  rootid等于0
459  如果size恒等于XATTR_CAPS_SZ_3rootid等于le32_to_cpu(rootid)
462  返回:make_kuid - Map a user-namespace uid pair into a kuid
调用者
名称描述
cap_convert_nscapUser requested a write of security.capability. If needed, update the* xattr to change from v2 to v3, or to fixup the v3 rootid.* If all is ok, we return the new size, on error return < 0.