Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\auditsc.c Create Date:2022-07-28 11:28:28
Last Modify:2020-03-17 16:31:21 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__audit_log_bprm_fcaps - store information about a loading bprm and relevant fcaps*@bprm: pointer to the bprm being processed*@new: the proposed new credentials*@old: the old credentials* Simply check if the proc already has the caps given by the file and

Proto:int __audit_log_bprm_fcaps(struct linux_binprm *bprm, const struct cred *new, const struct cred *old)

Type:int

Parameter:

TypeParameterName
struct linux_binprm *bprm
const struct cred *new
const struct cred *old
2445  context = audit_context()
2448  ax = Allocation memory
2449  If Not ax Then Return -ENOMEM
2452  type = Information about fcaps increasing perms
2453  next = aux
2454  aux = ax
2456  Extract the on-exec-apply capability sets for an executable file.
2458  permitted = permitted
2459  inheritable = inheritable
2460  effective bit of file cap = Not Not (magic_etc & VFS_CAP_FLAGS_EFFECTIVE)
2461  rootid = rootid
2462  fcap_ver = (magic_etc & VFS_CAP_REVISION_MASK) >> VFS_CAP_REVISION_SHIFT
2464  permitted = caps we're permitted
2465  inheritable = caps our children can inherit
2466  effective set of process = caps we can actually use
2467  ambient = Ambient capability set
2469  permitted = caps we're permitted
2470  inheritable = caps our children can inherit
2471  effective set of process = caps we can actually use
2472  ambient = Ambient capability set
2473  Return 0