Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check that there aren't references to earlier/same mount namespaces in the* specified subtree. Such references can act as pins for mount namespaces* that aren't checked by the mount-cycle checking code, thereby allowing* cycles to be made.

Proto:static bool check_for_nsfs_mounts(struct mount *subtree)

Type:bool

Parameter:

TypeParameterName
struct mount *subtree
2585  bool ret = false
2587  lock_mount_hash()
2588  When p cycle If mnt_ns_loop( root of the mounted tree ) Then
2590  Go to out
2592  ret = true
2593  out :
2594  unlock_mount_hash()
2595  Return ret
Caller
NameDescribe
do_move_mount