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:mount_too_revealing

Proto:static bool mount_too_revealing(const struct super_block *sb, int *new_mnt_flags)

Type:bool

Parameter:

TypeParameterName
const struct super_block *sb
int *new_mnt_flags
3903  required_iflags = Ignore executables on this fs | Ignore devices on this fs
3904  ns = mnt_ns
3907  If user_ns == userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ? Then Return false
3911  s_iflags = s_iflags
3912  If Not (s_iflags & stype already mounted ) Then Return false
3915  If (s_iflags & required_iflags) != required_iflags Then
3916  WARN_ONCE(1, "Expected s_iflags to contain 0x%lx\n", required_iflags)
3918  Return true
3921  Return Not mnt_already_visible(ns, sb, new_mnt_flags)
Caller
NameDescribe
do_new_mount_fcCreate a new mount using a superblock configuration and request it* be added to the namespace tree.
SYSCALL_DEFINE3Create a kernel mount representation for a new, prepared superblock* (specified by fs_fd) and attach to an open_tree-like file descriptor.