函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mount_too_revealing

函数原型:static bool mount_too_revealing(const struct super_block *sb, int *new_mnt_flags)

返回类型:bool

参数:

类型参数名称
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  如果user_ns恒等于userns count is 1 for root user, 1 for init_uts_ns,* and 1 for... ?则返回:false
3911  s_iflags等于s_iflags
3912  如果非s_iflags按位与stype already mounted 的值则返回:false
3915  如果s_iflags按位与required_iflags的值不等于required_iflags
3916  WARN_ONCE(1, "Expected s_iflags to contain 0x%lx\n", required_iflags)
3918  返回:true
3921  返回:非mnt_already_visible(ns, sb, new_mnt_flags)
调用者
名称描述
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.