Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namei.c Create Date:2022-07-28 20:05:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:user_path_create

Proto:inline struct dentry *user_path_create(int dfd, const char __user *pathname, struct path *path, unsigned int lookup_flags)

Type:struct dentry

Parameter:

TypeParameterName
intdfd
const char __user *pathname
struct path *path
unsigned intlookup_flags
3635  Return filename_create(dfd, getname(pathname), path, lookup_flags)
Caller
NameDescribe
do_mknodat
do_mkdirat
do_symlinkat
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