函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_file_fcntl - Smack check on fcntl*@file: the object*@cmd: what action to check*@arg: unused* Generally these operations are harmless

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

返回类型:int

参数:

类型参数名称
struct file *file
unsigned intcmd
unsigned longarg
1617  rc等于0
1618  inode等于file_inode(file)
1620  如果此条件成立可能性小(为编译器优化)(IS_PRIVATE(inode))则返回:0
1624  :cmd恒等于F_GETLK
1625  退出
1626  :cmd恒等于F_SETLK
1627  :cmd恒等于F_SETLKW
1628  some inline functions to set up audit data* they do nothing if CONFIG_AUDIT is not set
1629  smk_ad_setfield_u_fs_path( & ad, f_path)
1630  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
1631  rc等于smk_bu_file(file, Locks should be writes, but ... , rc)
1632  退出
1633  :cmd恒等于F_SETOWN
1634  :cmd恒等于F_SETSIG
1635  some inline functions to set up audit data* they do nothing if CONFIG_AUDIT is not set
1636  smk_ad_setfield_u_fs_path( & ad, f_path)
1637  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
1638  rc等于smk_bu_file(file, MAY_WRITE, rc)
1639  退出
1640  默认
1641  退出
1644  返回:rc