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:validheader

Proto:static bool validheader(size_t size, const struct vfs_cap_data *cap)

Type:bool

Parameter:

TypeParameterName
size_tsize
const struct vfs_cap_data *cap
467  Return is_v2header(size, cap) || is_v3header(size, cap)
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.