[LTP] [PATCH 2/2] syscalls/unshare: convert unshare02 to the new API
Cyril Hrubis
chrubis@suse.cz
Mon Apr 19 16:07:43 CEST 2021
Hi!
> 1. Convert unshare02 to the new API;
> 2. Check whether the returned value is correct in the child process
> instead of the parent process;
> 3. Add a test case: use the CLONE_NEWNS parameter as a non-root user
> and the expected return value is EPERM.
The EPERM check fails if the test is executed by a root. LTP tests
usually setuid() to "nobody" for EPERM tests if executed as a root.
The TC should be lowercase but that is very minor.
Apart from these it's a really good cleanup.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list