Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\include\objsec.h Create Date:2022-07-28 18:52:14
Last Modify:2020-03-18 08:17:34 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:selinux_file

Proto:static inline struct file_security_struct *selinux_file(const struct file *file)

Type:struct file_security_struct

Parameter:

TypeParameterName
const struct file *file
159  Return f_security + lbs_file
Caller
NameDescribe
file_alloc_security
file_has_permCheck whether a task can use an open file descriptor toaccess an inode in a given way. Check access to thedescriptor itself, and then use dentry_has_perm tocheck a particular permission to the file.Access to the descriptor is implicitly granted if it
selinux_binder_transfer_file
selinux_file_permission
ioctl_has_permCheck whether a task has the ioctl permission and cmd* operation to an inode.
selinux_file_set_fowner
selinux_file_send_sigiotask
selinux_file_open
selinux_kernel_module_from_file