Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp13660797rwd; Sat, 24 Jun 2023 04:31:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ420w9evMZBHe9VcwfM8Nmde01Mo9gE77f+FEHSnRM3PCNFPHHnumQ3M6yG4AhgT4n74130 X-Received: by 2002:a92:d309:0:b0:340:66f7:533b with SMTP id x9-20020a92d309000000b0034066f7533bmr22175531ila.10.1687606285332; Sat, 24 Jun 2023 04:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687606285; cv=none; d=google.com; s=arc-20160816; b=IiC5a1udNukWP90itCe7WdOpdjn7scbR3Xhwm4/zBX+Y3M0elYjmHSJUv3trlPUOkQ z4uCn34SYa79g5sqXbdBDfxEUDpxWXS5wxijfTxoPrD+b57Pxl/M+NEh914azVgNtOZm ad6s+1k9MBmON9gcA8wvXW4UQchbiqnRZiAn0imhbXPhfZD7yoWEK04bLko1dhrH1Z90 3p0ybpmsPCWihYmoljc/RjcAjbMnYZn36ipkqh+svXSExVSzIRwmm+6HN7BO6SdyMWPg 5naA8+rp16lKNngwxUW+zotViC3K0j5kIWfa2o1lKKjEpO4upTPF7CI5/dTM843FNJkI z6kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:dkim-signature :from; bh=JTyiW3SMfi4YScZcQQ/Eqsuo4T4lZH34HBQp89fNxMU=; fh=g5y7j50HCusOFRgKNhVWk9U9UI6WIiaHKjQ0jhBEuBM=; b=A/LqPombQ4TqYLUshxZAo40CVSfVvbo0EQgCsuXgFfPG/8/OS6zQVgBzF0Hhg9POZF RNrV58fPB52KTzuIH2GL4MLCQcZpn9BMYKO1Xb75iQuRSGI2KyT7klaQ13AtybO4BiWu m0O6NqWYgKGQ0ewVGY+Vj0/9xpv0ZF5vZlv+J9yQ9zpefajITifsKDe3f1A7Tvs4Um5v CBn+wq3FHikNFo1sEhGFC/FTs54RD01/cyVNHMUtGZYlJaNOhJZrMzc4QFDmRnf4CTab y/kS3IGj4epnRVcXf+WC65d3IJZW0JJ8T37vdxXd/jL2HmCv5hLXxccXni736euo0ELd vnfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=s736ziZI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a056a00098f00b0066882062113si1173760pfg.9.2023.06.24.04.31.04; Sat, 24 Jun 2023 04:31:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=s736ziZI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233077AbjFXKbN (ORCPT + 99 others); Sat, 24 Jun 2023 06:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232879AbjFXKbG (ORCPT ); Sat, 24 Jun 2023 06:31:06 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BAE710F5; Sat, 24 Jun 2023 03:31:05 -0700 (PDT) From: =?utf-8?q?Thomas_Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1687602663; bh=hzizDE0ofd3T5vSSD4XlksVV4PJv55T5z7/2M1lRIzg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=s736ziZIOYjSRE+ah/C5l268BQPA45kdL1qrax+pxBfF+O7My/Q6C+a14kXoky8vd YD0T5fapsmdqU7/11Y2mxLLX8GEhHfH0afuNV9akfrNn7cs69o9wmwfopXqDBOuSmm 5N0JpQv4GcnWJyxfOmMl/njB2v8Q++EXPaz9O8XA= Date: Sat, 24 Jun 2023 12:30:46 +0200 Subject: [PATCH 1/2] selftests/nolibc: drop test chmod_net MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20230624-proc-net-setattr-v1-1-73176812adee@weissschuh.net> References: <20230624-proc-net-setattr-v1-0-73176812adee@weissschuh.net> In-Reply-To: <20230624-proc-net-setattr-v1-0-73176812adee@weissschuh.net> To: Willy Tarreau , Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Zhangjin Wu , Arnd Bergmann , =?utf-8?q?Thomas_Wei=C3=9Fschuh?= X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687602663; l=1385; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=hzizDE0ofd3T5vSSD4XlksVV4PJv55T5z7/2M1lRIzg=; b=DF/vX9Kb4oDrP3HJyxHWbLrQCz+jWOTPWYigChKBgenfVT0teCpk23ZpjtVERScZTkb2ojuco R0JddflQm3cANkMb6S0BW1K7oDY/9Vp863E3rP4pbXqXGkRt2TgfmL1 X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: Thomas Weißschuh --- tools/testing/selftests/nolibc/nolibc-test.c | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index 21bacc928bf7..7e649814a241 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -512,7 +512,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; -- 2.41.0