函数逻辑报告 | 
Source Code:fs\open.c | 
Create Date:2022-07-29 10:30:58 | 
| Last Modify:2020-03-18 10:16:03 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:ksys_chroot
函数原型:int ksys_chroot(const char __user *filename)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| const char __user * | filename | 
| 511 | retry : | 
| 512 | error等于user_path_at(Special value used to indicateopenat should use the currentworking directory. , filename, lookup_flags, & path) | 
| 517 | 如果error则转到:dput_and_out | 
| 521 | 如果非ns_capable(current_user_ns(), Allow use of chroot() )则转到:dput_and_out | 
| 523 | error等于security_path_chroot( & path) | 
| 524 | 如果error则转到:dput_and_out | 
| 527 | set_fs_root(fs, & path) | 
| 528 | error等于0 | 
| 529 | dput_and_out : | 
| 533 | 转到:retry | 
| 535 | out : | 
| 536 | 返回:error | 
| 名称 | 描述 | 
|---|---|
| init_linuxrc | |
| handle_initrd | |
| SYSCALL_DEFINE1 | |
| prepare_namespace | Prepare the namespace - decide what/where to mount, load ramdisks, etc. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |