Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\security.h Create Date:2022-07-28 05:56:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:security_path_link

Proto:static inline int security_path_link(struct dentry *old_dentry, const struct path *new_dir, struct dentry *new_dentry)

Type:int

Parameter:

TypeParameterName
struct dentry *old_dentry
const struct path *new_dir
struct dentry *new_dentry
1712  Return 0
Caller
NameDescribe
do_linkatHardlinks 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