函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:If the path is not connected to the expected root,* check if it is a sysctl and handle specially else remove any* leading / that __d_path may have returned

函数原型:static int disconnect(const struct path *path, char *buf, char **name, int flags, const char *disconnected)

返回类型:int

参数:

类型参数名称
const struct path *path
char *buf
char **name
intflags
const char *disconnected
51  error等于0
53  如果非flags按位与 connect disconnected paths to / 的值且非flags按位与CHROOT_NSCONNECT的值恒等于CHROOT_NSCONNECTour_mnt(mnt)的值则
59  error等于负EACCES
60  如果name恒等于'/'则name等于name加1
62  否则
63  如果name不等于'/'则error等于modified from dcache.c
66  如果非errordisconnectederror等于modified from dcache.c
71  返回:error
调用者
名称描述
d_namespace_pathd_namespace_path - lookup a name associated with a given path*@path: path to lookup (NOT NULL)*@buf: buffer to store path to (NOT NULL)*@name: Returns - pointer for start of path name with in @buf (NOT NULL)*@flags: flags controlling path