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_linkat - Check permissions for creating a hardlink*@link: the source to hardlink from* Block hardlink when all of:* - sysctl_protected_hardlinks enabled* - fsuid does not match inode* - hardlink source is unsafe (see safe_hardlink_source() above)* -
Proto:static int may_linkat(struct path *link)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct path * | link |
| 987 | If Not sysctl_protected_hardlinks Then Return 0 |
| 997 | Return -EPERM |
| Name | Describe |
|---|---|
| do_linkat | Hardlinks are often used in delicate situations. We avoid* security-related surprises by not following symlinks on the* newname. --KAB* We don't follow them on the oldname either to be compatible* with linux 2.0, and to avoid hard-linking to directories |
| 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 |