]> Git Repo - J-linux.git/commitdiff
selftests/nolibc: drop test chmod_net
authorThomas Weißschuh <[email protected]>
Sat, 24 Jun 2023 10:30:46 +0000 (12:30 +0200)
committerChristian Brauner <[email protected]>
Thu, 13 Jul 2023 11:55:14 +0000 (13:55 +0200)
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: b4844fa0bdb4 ("selftests/nolibc: implement a few tests for various syscalls")
Tested-by: Zhangjin Wu <[email protected]>
Signed-off-by: Willy Tarreau <[email protected]>
Message-Id: <20230624-proc-net-setattr-v1-1-73176812adee@weissschuh.net>
Signed-off-by: Christian Brauner <[email protected]>
tools/testing/selftests/nolibc/nolibc-test.c

index 486334981e601582204e870165fe5830256ac86e..970df9e5513188c9e21911b31640081b02f4ed4e 100644 (file)
@@ -577,7 +577,6 @@ int run_syscall(int min, int max)
                CASE_TEST(chdir_root);        EXPECT_SYSZR(1, chdir("/")); break;
                CASE_TEST(chdir_dot);         EXPECT_SYSZR(1, chdir(".")); break;
                CASE_TEST(chdir_blah);        EXPECT_SYSER(1, chdir("/blah"), -1, ENOENT); break;
-               CASE_TEST(chmod_net);         EXPECT_SYSZR(proc, chmod("/proc/self/net", 0555)); break;
                CASE_TEST(chmod_self);        EXPECT_SYSER(proc, chmod("/proc/self", 0555), -1, EPERM); break;
                CASE_TEST(chown_self);        EXPECT_SYSER(proc, chown("/proc/self", 0, 0), -1, EPERM); break;
                CASE_TEST(chroot_root);       EXPECT_SYSZR(euid0, chroot("/")); break;
This page took 0.052294 seconds and 4 git commands to generate.