Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rootid_from_xattr

Proto:static kuid_t rootid_from_xattr(const void *value, size_t size, struct user_namespace *task_ns)

Type:kuid_t

Parameter:

TypeParameterName
const void *value
size_tsize
struct user_namespace *task_ns
456  nscap = value
457  rootid = 0
459  If size == XATTR_CAPS_SZ_3 Then rootid = le32_to_cpu(rootid)
462  Return make_kuid - Map a user-namespace uid pair into a kuid
Caller
NameDescribe
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.