Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smack_sb_statfs - Smack check on statfs*@dentry: identifies the file system in question* Returns 0 if current can read the floor of the filesystem,* and error code otherwise

Proto:static int smack_sb_statfs(struct dentry *dentry)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
882  sbp = s_security
886  some inline functions to set up audit data* they do nothing if CONFIG_AUDIT is not set
887  smk_ad_setfield_u_fs_path_dentry( & ad, dentry)
889  rc = smk_curacc - determine if current has a specific access to an object*@obj_known: a pointer to the object's Smack label entry*@mode: the access requested, in "MAY" format*@a : common audit data* This function checks the current subject label/object label
890  rc = smk_bu_current("statfs", smk_floor, MAY_READ, rc)
891  Return rc