Skip to content

Commit 4931983

Browse files
t-8chbrauner
authored andcommitted
selftests/nolibc: drop test chmod_net
The test relies on /proc/$PID/net to allow chmod() operations. It is the only file or directory in /proc/$PID/ to allow this and a bug. That bug will be fixed in the next patch in the series and therefore the test would start failing. Link: https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Thomas Weißschuh <[email protected]> Fixes: b4844fa ("selftests/nolibc: implement a few tests for various syscalls") Tested-by: Zhangjin Wu <[email protected]> Signed-off-by: Willy Tarreau <[email protected]> Message-Id: <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent 06c2afb commit 4931983

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

tools/testing/selftests/nolibc/nolibc-test.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,6 @@ int run_syscall(int min, int max)
577577
CASE_TEST(chdir_root); EXPECT_SYSZR(1, chdir("/")); break;
578578
CASE_TEST(chdir_dot); EXPECT_SYSZR(1, chdir(".")); break;
579579
CASE_TEST(chdir_blah); EXPECT_SYSER(1, chdir("/blah"), -1, ENOENT); break;
580-
CASE_TEST(chmod_net); EXPECT_SYSZR(proc, chmod("/proc/self/net", 0555)); break;
581580
CASE_TEST(chmod_self); EXPECT_SYSER(proc, chmod("/proc/self", 0555), -1, EPERM); break;
582581
CASE_TEST(chown_self); EXPECT_SYSER(proc, chown("/proc/self", 0, 0), -1, EPERM); break;
583582
CASE_TEST(chroot_root); EXPECT_SYSZR(euid0, chroot("/")); break;

0 commit comments

Comments
 (0)