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:The logic we want is* if suid or (sgid and xgrp)* remove privs

Proto:int should_remove_suid(struct dentry *dentry)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
1776  mode = i_mode
1777  kill = 0
1780  If Value for the false possibility is greater at compile time(mode & S_ISUID) Then kill = ATTR_KILL_SUID
1787  If Value for the false possibility is greater at compile time((mode & S_ISGID) && (mode & S_IXGRP)) Then kill |= ATTR_KILL_SGID
1790  If Value for the false possibility is greater at compile time(kill && !Check operation authority && S_ISREG(mode)) Then Return kill
1793  Return 0
Caller
NameDescribe
dentry_needs_remove_privsReturn 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).