Function report | 
Source Code:fs\namei.c | 
Create Date:2022-07-28 20:05:02 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:may_create_in_sticky - Check whether an O_CREAT open in a sticky directory* should be allowed, or not, on files that already* exist
Proto:static int may_create_in_sticky(umode_t dir_mode, kuid_t dir_uid, struct inode *const inode)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| umode_t | dir_mode | |
| kuid_t | dir_uid | |
| struct inode *const | inode | 
| 1024 | If Not sysctl_protected_fifos && S_ISFIFO(i_mode) || Not sysctl_protected_regular && S_ISREG(i_mode) || Value is more likely to compile time(!(dir_mode & S_ISVTX)) || uid_eq(i_uid, dir_uid) || uid_eq(current_fsuid(), i_uid) Then Return 0 | 
| 1031 | If Value is more likely to compile time(dir_mode & 0002) || dir_mode & 0020 && ( sysctl_protected_fifos >= 2 && S_ISFIFO(i_mode) || sysctl_protected_regular >= 2 && S_ISREG(i_mode) ) Then | 
| 1039 | Return -EACCES | 
| 1041 | Return 0 | 
| Name | Describe | 
|---|---|
| do_last | Handle the last step of open() | 
| 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  |