Unverified Commit 49319832 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Christian Brauner
Browse files

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/d0d111ef-edae-4760-83fb-36db84278da1@t-8ch.de/


Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Fixes: b4844fa0 ("selftests/nolibc: implement a few tests for various syscalls")
Tested-by: default avatarZhangjin Wu <falcon@tinylab.org>
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
Message-Id: <20230624-proc-net-setattr-v1-1-73176812adee@weissschuh.net>
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 06c2afb8
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;