[Devel] [PATCH hci-8.2 3/3] selftests/ve: check repeated slashes in a permission path

Konstantin Khorenko khorenko at virtuozzo.com
Tue Dec 1 15:19:46 MSK 2026


Item 4 of the cover letter reply.

On Tue, 1 Dec 2026 12:43:31 +0100, Pavel Tikhomirov wrote:
> +	.slashed	= "//interrupts",

Only leading slashes: a walk that skips them but still stops at an
inner empty component passes this case. Put an empty component
inside the path, as the sysfs case does.

> +/*
> + * Repeated slashes count as one, as in a path lookup: "/kernel//vmcoreinfo r"
> + * sets kernel/vmcoreinfo, not the directory before the empty component, and
> + * the VE can read the file.
> + */

One line is enough for a test comment.

-- 
Konstantin Khorenko,
Virtuozzo Linux Kernel Team



More information about the Devel mailing list