[LTP] [PATCH v8 3/4] tst_kconfig: add module mappings for vsock/vsock_loopback
Cyril Hrubis
chrubis@suse.cz
Wed Nov 25 11:53:16 CET 2026
Hi!
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
> The test needs root only to load the modules; the reproducer runs as
> an ordinary non-root process in the initial namespace, where it can
> use loopback VSOCK on non-privileged ports. Drop privileges to nobody
> in setup() after the modules are loaded; the framework unloads the
> modules from its still-root context, so no restore is needed in
> cleanup().
One idea I have in my mind is to add ".run_as_nobody" into the tst_test
structure, which would:
- run the setup() and cleanup() as root
- switched to nobody for run()
I guess that first of all we should check how common is that pattern and
add the support if needed...
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list