Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-28 20:07:59
Last Modify:2020-03-18 19:19:59 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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).

Proto:int dentry_needs_remove_privs(struct dentry *dentry)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
1804  inode = d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.
1805  mask = 0
1808  If IS_NOSEC(inode) Then Return 0
1811  mask = The logic we want is* if suid or (sgid and xgrp)* remove privs
1812  ret = security_inode_need_killpriv(dentry)
1813  If ret < 0 Then Return ret
1815  If ret Then mask |= ATTR_KILL_PRIV
1817  Return mask
Caller
NameDescribe
file_remove_privsRemove special file priviledges (suid, capabilities) when file is written* to or truncated.