函数逻辑报告 | 
Source Code:fs\namei.c | 
Create Date:2022-07-29 10:34:52 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称: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)* -
函数原型:static int may_linkat(struct path *link)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct path * | link | 
| 987 | 如果非sysctl_protected_hardlinks则返回:0 | 
| 997 | 返回:负EPERM | 
| 名称 | 描述 | 
|---|---|
| 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 | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |