Function report |
Source Code:fs\open.c |
Create Date:2022-07-28 20:00:55 |
| Last Modify:2020-03-18 10:16:03 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ksys_chroot
Proto:int ksys_chroot(const char __user *filename)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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) |
| 516 | error = inode_permission( Where the name belongs to - NULL is * negative , MAY_EXEC | MAY_CHDIR) |
| 517 | If error Then Go to dput_and_out |
| 521 | If Not ns_capable(current_user_ns(), Allow use of chroot() ) Then Go to dput_and_out |
| 523 | error = security_path_chroot( & path) |
| 524 | If error Then Go to dput_and_out |
| 527 | set_fs_root(fs, & path) |
| 528 | error = 0 |
| 529 | dput_and_out : |
| 533 | Go to retry |
| 535 | out : |
| 536 | Return error |
| Name | Describe |
|---|---|
| init_linuxrc | |
| handle_initrd | |
| SYSCALL_DEFINE1 |
| 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 |