Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp13660795rwd; Sat, 24 Jun 2023 04:31:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ69opWt5SWDlzoOQ9ygBCRx+vlQU9Qmt6bvFJ+UhpDpLJ4I8EeL3t2+yHL4eY98SxEHJBcX X-Received: by 2002:a92:ce07:0:b0:33b:c0d8:26af with SMTP id b7-20020a92ce07000000b0033bc0d826afmr23324457ilo.7.1687606285326; 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=cRjfDfT6DYB6kNw0hvY6WpT1M1eS/Q4BhjaPOz+ykTn6KoV1UJi/acESiZewL7RcuY Up3ou8GWQB71WcrGSTEGLcZHDeEa6bLXMereGbyH56B/HqjWhW5hfzjX3xdlkupqstI0 mEJANkLNxjJz6cT/N3YfPz0S9sic7q5PFyq+nMW16CJ86SFSEKajWfxMyR/ziG7S7bnb xCh3Tnxs3AkoWEghjon6Gk3Uh963v/q/RKj1xWsiCghCAZXf0dlvIpVYwEGzUETZjjth 6YXDnijjeDL4yD2Jg3dXuvaGCME16HbpZwiSfj2WNyJdt1oKYXLM4QokMNcmLtSFix6c b8hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:dkim-signature:from; bh=wpvkXsvjnwixLq3QJyuqWCW0h1uH9FnMdNldqdyVXOI=; fh=g5y7j50HCusOFRgKNhVWk9U9UI6WIiaHKjQ0jhBEuBM=; b=E3bN7N+QocgkUhb78+CWJn7XZuAgnFXgwzIrHtAMgyWlBK5q1Uu6e9Xc9SzFU6endF XDSNv+5Jn5pDKevD3aZGo/K8NbzbwR5feb3J7Ku3mesxeIOlJF51ps/ko3fVZ7mB3ULf W8b18soH0WHLmTmqnfmO7usY2eXFHCLwvxZSvLrgWH4pXNBDz9v7cZEsdLxyJ/FzZW1d 0ul7310Dhzztej+GkBWJQYz+mriDmDcd7Qy/0xOzUoNKWe8nQQ86PiO7xnWtJoKTQCga Q6nqV58OOZSn++TldMLZ49YmPXsMcg7gHP/fKRnkSjpSxTxBil10bmLZaaX11T750NcO xF9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=FKEt8muf; 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 f21-20020a631f15000000b0054ff40830b5si1278749pgf.384.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=FKEt8muf; 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 S233001AbjFXKbI (ORCPT + 99 others); Sat, 24 Jun 2023 06:31:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232655AbjFXKbG (ORCPT ); Sat, 24 Jun 2023 06:31:06 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6C4D10F7; 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=WAQxIZy8y/wxN8eDcQ6zJJABtAxVwhMmcahqLn9v8OM=; h=From:Subject:Date:To:Cc:From; b=FKEt8muf/8qMIDO4vrjsWnxx2qqbDzBd6VMsGMYRJ9ESvOTKoOs5oS9kLva2GR1wq bXCK014zVe8yVpqTRGpHj71Xs9wnCWCMNqIH3XNBIr4aSefRmwVG+Tzc8WJgrqzOvP dFyAdHZjGDRZ0bQey0nXAzseBcjYIt65GqbWGU0w= Subject: [PATCH 0/2] proc: proc_setattr for /proc/$PID/net Date: Sat, 24 Jun 2023 12:30:45 +0200 Message-Id: <20230624-proc-net-setattr-v1-0-73176812adee@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIANXFlmQC/x2N0QqDMAwAf0XyvEDXbSL7lbGHtKYzIFHSOgbiv y/4eAfH7VDZhCs8ux2Mv1JlUYfrpYM8kX4YZXSGGOIt9PGOqy0ZlRtWbtSa4VAC9WngFMsDPEt UGZOR5slD3ebZ5Wpc5Hd+Xu/j+APEn6XrdwAAAA== 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=1198; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=WAQxIZy8y/wxN8eDcQ6zJJABtAxVwhMmcahqLn9v8OM=; b=UbMcSrK5SnNWXGQAzqQMKF99lxxGYIZv3CqZ9Nf0TkWhbguoT1+BXcBrY4mcu2+RbBptDeM2a ervAB0i4iHBBdMQmh9ujn6K87D+8dzgD1kgmdDWOs2lDLsenDBBBz41 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 /proc/$PID/net currently allows the setting of file attributes, in contrast to other /proc/$PID/ files and directories. This would break the nolibc testsuite so the first patch in the series removes the offending testcase. The "fix" for nolibc-test is intentionally kept trivial as the series will most likely go through the filesystem tree and if conflicts arise, it is obvious on how to resolve them. Technically this can lead to breakage of nolibc-test if an old nolibc-test is used with a newer kernel containing the fix. Note: Except for /proc itself this is the only "struct inode_operations" in fs/proc/ that is missing an implementation of setattr(). Signed-off-by: Thomas Weißschuh --- Thomas Weißschuh (2): selftests/nolibc: drop test chmod_net proc: use generic setattr() for /proc/$PID/net fs/proc/proc_net.c | 1 + tools/testing/selftests/nolibc/nolibc-test.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) --- base-commit: a92b7d26c743b9dc06d520f863d624e94978a1d9 change-id: 20230624-proc-net-setattr-8f0a6b8eb2f5 Best regards, -- Thomas Weißschuh