Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namespace.c Create Date:2022-07-28 20:09:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:current_chrooted

Proto:bool current_chrooted(void)

Type:bool

Parameter:Nothing

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  When d_mountpoint(dentry) && follow_down_one( & ns_root) cycle
3827  get_fs_root(fs, & fs_root)
3829  chrooted = Not 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  Return chrooted
Caller
NameDescribe
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.