Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\path.c Create Date:2022-07-28 19:51:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static int disconnect(const struct path *path, char *buf, char **name, int flags, const char *disconnected)

Type:int

Parameter:

TypeParameterName
const struct path *path
char *buf
char **name
intflags
const char *disconnected
51  error = 0
53  If Not (flags & connect disconnected paths to / ) && Not ( (flags & CHROOT_NSCONNECT) == CHROOT_NSCONNECT && our_mnt(mnt)) Then
59  error = -EACCES
60  If name == '/' Then name = name + 1
62  Else
63  If name != '/' Then error = modified from dcache.c
66  If Not error && disconnected Then error = modified from dcache.c
71  Return error
Caller
NameDescribe
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