| Function report | 
| 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 activity | Download SCCT | Chinese | 
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:
| Type | Parameter | Name | 
|---|---|---|
| const struct path * | path | |
| char * | buf | |
| char ** | name | |
| int | flags | |
| const char * | disconnected | 
| 51 | error = 0 | 
| 53 | If Not (flags & connect disconnected paths to / ) && Not ( (flags & CHROOT_NSCONNECT) == CHROOT_NSCONNECT && our_mnt(mnt)) Then | 
| 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 | 
| Name | Describe | 
|---|---|
| d_namespace_path | d_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 | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |