Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Don't allow locked mount flags to be cleared.* No locks need to be held here while testing the various MNT_LOCK* flags because those flags can never be cleared once they are set.

Proto:static bool can_change_locked_flags(struct mount *mnt, unsigned int mnt_flags)

Type:bool

Parameter:

TypeParameterName
struct mount *mnt
unsigned intmnt_flags
2418  fl = mnt_flags
2420  If fl & MNT_LOCK_READONLY && Not (mnt_flags & does the user want this to be r/o? ) Then Return false
2424  If fl & MNT_LOCK_NODEV && Not (mnt_flags & MNT_NODEV) Then Return false
2428  If fl & MNT_LOCK_NOSUID && Not (mnt_flags & MNT_NOSUID) Then Return false
2432  If fl & MNT_LOCK_NOEXEC && Not (mnt_flags & MNT_NOEXEC) Then Return false
2436  If fl & MNT_LOCK_ATIME && (fl & MNT_ATIME_MASK) != (mnt_flags & MNT_ATIME_MASK) Then Return false
2440  Return true
Caller
NameDescribe
do_reconfigure_mntHandle reconfiguration of the mountpoint only without alteration of the* superblock it refers to. This is triggered by specifying MS_REMOUNT|MS_BIND* to mount(2).
do_remounthange filesystem flags. dir should be a physical root of filesystem.* If you've mounted a non-root directory somewhere and want to do remount* on it - tough luck.