diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-08-19 18:18:21 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-08-19 18:18:21 +0200 |
| commit | ac8649cebe6d84d3333893b67b2023fef90772e5 (patch) | |
| tree | 07b614ce1324e8f0590d12923606fc4c2ac7fed6 /fs/namespace.c | |
| parent | b2c0abc1f2778c28522bc44f5134772809949717 (diff) | |
| parent | bf3be28f6721e24961992ebb9e61c0cf21a56806 (diff) | |
| download | linux-stable-linux-rolling-lts.tar.gz linux-stable-linux-rolling-lts.zip | |
Merge v6.18.45linux-rolling-lts
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/namespace.c')
| -rw-r--r-- | fs/namespace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index 5fd8b021785a..d886ae255e40 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -4352,6 +4352,11 @@ SYSCALL_DEFINE3(fsmount, int, fs_fd, unsigned int, flags, ret = PTR_ERR(newmount.mnt); goto err_unlock; } + if (newmount.mnt->mnt_sb->s_flags & SB_NOUSER) { + mntput(newmount.mnt); + ret = -EINVAL; + goto err_unlock; + } newmount.dentry = dget(fc->root); newmount.mnt->mnt_flags = mnt_flags; |
