Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Get the security label of an inode.

Proto:static struct inode_security_struct *inode_security(struct inode *inode)

Type:struct inode_security_struct

Parameter:

TypeParameterName
struct inode *inode
310  Try reloading inode security labels that have been marked as invalid. The*@may_sleep parameter indicates when sleeping and thus reloading labels is* allowed; when set to false, returns -ECHILD when the label is* invalid
311  Return selinux_inode(inode)
Caller
NameDescribe
selinux_determine_inode_labelDetermine the label for an inode that might be unioned.
may_createCheck whether a task can create a file.
may_linkCheck whether a task can link, unlink, or rmdir a file/directory.
may_rename
selinux_bprm_set_creds
selinux_inode_getsecurityCopy the inode security context value to the user.* Permission check is handled by selinux_inode_getxattr hook.
selinux_file_permission
ioctl_has_permCheck whether a task has the ioctl permission and cmd* operation to an inode.
selinux_file_open
selinux_kernel_create_files_asset the file creation context in a security record to the same as the* objective context of the specified inode
selinux_kernel_module_from_file