[PATCH v2 21/27] selftests/landlock: Use _exit() in the named_pipe_ioctl child
Günther Noack
gnoack3000 at gmail.com
Wed Nov 4 21:09:07 UTC 2026
In the named_pipe_ioctl test, use _exit(2) like in other places.
Signed-off-by: Günther Noack <gnoack3000 at gmail.com>
---
tools/testing/selftests/landlock/fs_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/selftests/landlock/fs_test.c b/tools/testing/selftests/landlock/fs_test.c
index 1e94a3171e02..78b2bf06b6ee 100644
--- a/tools/testing/selftests/landlock/fs_test.c
+++ b/tools/testing/selftests/landlock/fs_test.c
@@ -4272,7 +4272,7 @@ TEST_F_FORK(layout1, named_pipe_ioctl)
if (child_pid == 0) {
fd = open(path, O_WRONLY);
close(fd);
- exit(0);
+ _exit(0);
}
fd = open(path, O_RDONLY);
--
2.56.0
More information about the Linux-security-module-archive
mailing list