函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-27 20:30:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:selinux_file_fcntl

函数原型:static int selinux_file_fcntl(struct file *file, unsigned int cmd, unsigned long arg)

返回类型:int

参数:

类型参数名称
struct file *file
unsigned intcmd
unsigned longarg
3787  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.()
3788  err等于0
3791  :cmd恒等于F_SETFL
3792  如果f_flags按位与O_APPEND且非arg按位与O_APPEND的值则
3794  退出
3797  :cmd恒等于F_SETOWN
3798  :cmd恒等于F_SETSIG
3799  :cmd恒等于F_GETFL
3800  :cmd恒等于F_GETOWN
3801  :cmd恒等于F_GETSIG
3802  :cmd恒等于F_GETOWNER_UIDS
3804  err等于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
3805  退出
3806  :cmd恒等于F_GETLK
3807  :cmd恒等于F_SETLK
3808  :cmd恒等于F_SETLKW
3809  :cmd恒等于F_OFD_GETLK
3810  :cmd恒等于F_OFD_SETLK
3811  :cmd恒等于F_OFD_SETLKW
3813  :cmd恒等于using 'struct flock64'
3814  :cmd恒等于F_SETLK64
3815  :cmd恒等于F_SETLKW64
3817  err等于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
3818  退出
3821  返回:err