Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
struct dentry * | dentry |
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 |
Name | Describe |
---|---|
dentry_needs_remove_privs | 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). |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |