Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_file_ioctl

Proto:static int selinux_file_ioctl(struct file *file, unsigned int cmd, unsigned long arg)

Type:int

Parameter:

TypeParameterName
struct file *file
unsigned intcmd
unsigned longarg
3614  cred = current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
3615  error = 0
3618  Case cmd == FIONREAD
3620  Case cmd == map access
3622  Case cmd == get the block size used for bmap
3624  Case cmd == FS_IOC_GETFLAGS
3626  Case cmd == FS_IOC_GETVERSION
3627  error = Check 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
3628  Break
3630  Case cmd == FS_IOC_SETFLAGS
3632  Case cmd == FS_IOC_SETVERSION
3633  error = Check 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
3634  Break
3637  Case cmd == FIONBIO
3639  Case cmd == FIOASYNC
3640  error = Check 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
3641  Break
3643  Case cmd == sets one entry in translation table
3644  Case cmd == sets one function key string entry
3645  error = Check whether a task is allowed to use a capability.
3647  Break
3652  Default
3653  error = Check whether a task has the ioctl permission and cmd* operation to an inode.
3655  Return error