函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:current_chrooted

函数原型:bool current_chrooted(void)

返回类型:bool

参数:

3821  mnt等于mnt
3822  dentry等于mnt_root
3823  path_get - get a reference to a path*@path: path to get the reference to* Given a path increment the reference count to the dentry and the vfsmount.
3824 d_mountpoint(dentry)且follow_down_one( & ns_root)循环
3827  get_fs_root(fs, & fs_root)
3829  chrooted等于非path_equal( & fs_root, & ns_root)
3831  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
3832  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
3834  返回:chrooted
调用者
名称描述
create_user_nsCreate a new user namespace, deriving the creator from the user in the* passed credentials, and replacing that user with the new root user for the* new namespace.* This is called by copy_creds(), which will finish setting the target task's* credentials.