函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-29 10:34:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:may_follow_link - Check symlink following for unsafe situations*@nd: nameidata pathwalk data* In the case of the sysctl_protected_symlinks sysctl being enabled,* CAP_DAC_OVERRIDE needs to be specifically ignored if the symlink is

函数原型:static inline int may_follow_link(struct nameidata *nd)

返回类型:int

参数:

类型参数名称
struct nameidata *nd
906  如果非sysctl_protected_symlinks则返回:0
910  inode等于link_inode
911  如果uid_eq(fsuid, i_uid)则返回:0
915  parent等于 path.dentry.d_inode
916  如果i_mode按位与S_ISVTX按位或S_IWOTH的值的值不等于S_ISVTX按位或S_IWOTH的值则返回:0
920  puid等于i_uid
921  如果uid_valid(puid)且uid_eq(puid, i_uid)则返回:0
924  如果flags按位与RCU pathwalk mode; semi-internal 则返回:负ECHILD
927  audit_inode(name, dentry, 0)
928  audit_log_path_denied - report a path restriction denial*@type: audit message type (AUDIT_ANOM_LINK, AUDIT_ANOM_CREAT, etc)*@operation: specific operation name
929  返回:负EACCES
调用者
名称描述
trailing_symlink