Re: [PATCH v1] selftests/memfd: Run sysctl tests when PID namespace support is enabled

2024-12-05 Thread Jeff Xu
On Thu, Dec 5, 2024 at 11:29 AM Isaac J. Manjarres wrote: > > The sysctl tests for vm.memfd_noexec rely on the kernel to support PID > namespaces (i.e. the kernel is built with CONFIG_PID_NS=y). If the > kernel the test runs on does not support PID namespaces, the first > sysctl test will fail whe

[PATCH v1] selftests/memfd: Run sysctl tests when PID namespace support is enabled

2024-12-05 Thread Isaac J. Manjarres
The sysctl tests for vm.memfd_noexec rely on the kernel to support PID namespaces (i.e. the kernel is built with CONFIG_PID_NS=y). If the kernel the test runs on does not support PID namespaces, the first sysctl test will fail when attempting to spawn a new thread in a new PID namespace, abort the