函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-29 10:38:08
Last Modify:2020-03-18 19:19:59 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Remove special file priviledges (suid, capabilities) when file is written* to or truncated.

函数原型:int file_remove_privs(struct file *file)

返回类型:int

参数:

类型参数名称
struct file *file
1838  dentry等于file_dentry(file)
1839  inode等于file_inode(file)
1841  error等于0
1849  如果IS_NOSEC(inode)或非S_ISREG(i_mode)则返回:0
1852  kill等于Return mask of changes for notify_change() that need to be done as a* response to write or truncate. Return 0 if nothing has to be changed.* Negative value on error (change should be denied).
1853  如果kill小于0则返回:kill
1855  如果killerror等于__remove_privs(dentry, kill)
1857  如果非errorinode_has_no_xattr(inode)
1860  返回:error
调用者
名称描述
file_modifiedCaller must hold the file's inode lock
__generic_file_write_iter__generic_file_write_iter - write data to a file*@iocb: IO state structure (file, offset, etc.)*@from: iov_iter with data to write* This function does all the work needed for actually writing data to a* file