[Devel] [PATCH RHEL10 COMMIT] fs: namespace: allow mounting blockdevices without extra options
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Jun 19 22:25:11 MSK 2026
The commit is pushed to "branch-rh10-6.12.0-211.16.1.12.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-211.16.1.12.4.vz10
------>
commit 213ef7672ba4c0964be625897d0b219ef044ddf7
Author: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>
Date: Thu May 28 14:27:38 2026 +0000
fs: namespace: allow mounting blockdevices without extra options
ve_devmnt_process will iterate over all device-mounts of the current
ve namespace and will bounce the mount in case opts is a non NULL
pointer. Change the behavior to allow it.
Our goal is:
- device cgroup ebpf filters will filter which devices are allowed to be
mounted, and which not.
- ve.mount_opts will be used as a filter of which mount options are
allowed. It shouldn't deny mounting when no options are passed but it
should deny in case some option is passed that is not explicitly
allowed.
Feature: ve: ve generic structures
https://virtuozzo.atlassian.net/browse/VSTOR-132330
Signed-off-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>
Reviewed-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
fs/namespace.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/namespace.c b/fs/namespace.c
index 4639be66ad98c..566f11a222fcf 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -3236,6 +3236,8 @@ int ve_devmnt_process(struct ve_struct *ve, dev_t dev, void **data_pp, int remou
*/
if (ve->is_pseudosuper) {
err = 0;
+ } else if (((char *)*data_pp)[0] == '\0') {
+ err = 0;
} else {
ve_pr_warn_ratelimited(VE_LOG_BOTH, "VE%s: no allowed "
"mount options found for device %u:%u\n",
More information about the Devel
mailing list