[Devel] [PATCH hci-8.2 0/3] ve: count repeated slashes in a permission path as one
Pavel Tikhomirov
ptikhomirov at virtuozzo.com
Tue Dec 1 14:43:28 MSK 2026
A ve.sysfs_permissions rule with an empty path component is applied to
the node before it, not to the one the path names:
rule applied to
cpuN/cache/uevent rw cpuN/cache/uevent
cpuN/cache//uevent rw cpuN/cache
vzctl writes such rules for cpuN/cache, so in every Container this
directory is "rw" without "x" and nothing below it can be looked up.
A recent mongod 8.0 reads cpuN/cache/indexM/shared_cpu_list on start,
gets EACCES and aborts (vzt-criu-docker, react-express-mongodb).
Patch 1 skips empty components in ve.sysfs_permissions, as a path
lookup does, patch 2 does the same in ve.proc_permissions, patch 3 adds
a selftest.
https://virtuozzo.atlassian.net/browse/VSTOR-158149
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
Pavel Tikhomirov (3):
ve/kernfs: count repeated slashes in a permission path as one
fs/proc, ve: count repeated slashes in a permission path as one
selftests/ve: check repeated slashes in a permission path
fs/kernfs/ve.c | 29 +++++------------------------
fs/proc/ve.c | 3 ++-
tools/testing/selftests/ve/ve_perms_test.c | 28 ++++++++++++++++++++++++++++
3 files changed, 35 insertions(+), 25 deletions(-)
---
base-commit: beda1840d22b7707e3f8e18f413afbfffef93d25
change-id: 20261201-ve-perms-skip-slashes-3b989857978a
Best regards,
--
Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
More information about the Devel
mailing list