函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:user_path_create

函数原型:inline struct dentry *user_path_create(int dfd, const char __user *pathname, struct path *path, unsigned int lookup_flags)

返回类型:struct dentry

参数:

类型参数名称
intdfd
const char __user *pathname
struct path *path
unsigned intlookup_flags
3635  返回:filename_create(dfd, getname(pathname), path, lookup_flags)
调用者
名称描述
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