Message ID | ec2a7c3179e8eb2412289f0683da080b3bc2b18b.1674660533.git.legion@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp345065wrn; Wed, 25 Jan 2023 07:52:12 -0800 (PST) X-Google-Smtp-Source: AMrXdXuM8gTuLpYBcYUqjOKvYDpgNp7TVgOWP2lcjbsf+j31Dw7YJAEz6IkTw9NkfGLF6L4deNT+ X-Received: by 2002:a17:90b:4b92:b0:229:f4e1:d4b1 with SMTP id lr18-20020a17090b4b9200b00229f4e1d4b1mr23464098pjb.22.1674661932090; Wed, 25 Jan 2023 07:52:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674661932; cv=none; d=google.com; s=arc-20160816; b=dsr3W+HlHB+H+KbMZk+e/2+uiP/o+c59m2g0wArYXdbzEHdoDNB9yEXZb8nzmDYg7P GjSIvY9VCiVoC1uOHs8jDTmuqo2Qoy0qB/66WIexrqJV4tDZBswrGRK6gXhHWp3u+asu wBEuMTlVRJ6BAxHQ0laMcnrpfWgBXdjP9HIPLHjjxSy52a0qZEHg1u1T91XWtMAHuVvZ zjj1QVCPukemLeDnk6cpMTM486gY0/s5CPz8lmG70GYVMtOMfPTkM4J4nME1Fs9WGyar FGrbAOFVh/IpZRKfmBN/Jtxoj39K6MDm/al3RvNDrBaljeKdGFjuIongTm4rl+OYLKnn iq5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=6PA4Vk1aaZyy72y2gUxAbhyDNFo3h9SUw3oX/CJ3Bs4=; b=ylWRbo+UnD2Q+8cQJ90UaF745xTuoIuI4eYJIejEl4o3AinuNMt9YKLyrCsfBc4BI1 EKbdFVP8EZ9z0abw/VMqo5eSFWcCxVNPQeaxZ5CHc6X6/aOiZGVujMbFuC3+5Uy7EDUT hdYz2A1eEz8EY499su+fpg3DZRC3LoE+LnCCyPV5Emy7R+By1pewQ0vl4TWv52vUJG1B s20prlq3w3DPI4CmR/smyA8Xs6CEojcrcgHgb55Tns1+fXmL7YUlDWz0hX8xo7zUv3+Y a+izlEXYmClDFvBWWL6U9zZ4YYws+f52NtAMMV3que5HGQucYPOYlrbIFx/S1Cw8nO/e 1GsQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k8-20020a17090a590800b00228cb3af4aasi2244868pji.99.2023.01.25.07.52.00; Wed, 25 Jan 2023 07:52:12 -0800 (PST) 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; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236075AbjAYPbL (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Wed, 25 Jan 2023 10:31:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236079AbjAYPbG (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 25 Jan 2023 10:31:06 -0500 Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [205.139.111.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4A3C59B75 for <linux-kernel@vger.kernel.org>; Wed, 25 Jan 2023 07:31:01 -0800 (PST) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-595-ZpQQD_SlPyav-ZCRRyDwfg-1; Wed, 25 Jan 2023 10:29:27 -0500 X-MC-Unique: ZpQQD_SlPyav-ZCRRyDwfg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2B93E811E9C; Wed, 25 Jan 2023 15:29:27 +0000 (UTC) Received: from comp-core-i7-2640m-0182e6.redhat.com (ovpn-208-16.brq.redhat.com [10.40.208.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 68BFD2026D4B; Wed, 25 Jan 2023 15:29:25 +0000 (UTC) From: Alexey Gladkov <legion@kernel.org> To: LKML <linux-kernel@vger.kernel.org>, containers@lists.linux.dev, linux-fsdevel@vger.kernel.org Cc: Alexey Dobriyan <adobriyan@gmail.com>, Al Viro <viro@zeniv.linux.org.uk>, Andrew Morton <akpm@linux-foundation.org>, Christian Brauner <brauner@kernel.org>, Val Cowan <vcowan@redhat.com> Subject: [RFC PATCH v1 1/6] proc: Fix separator for subset option Date: Wed, 25 Jan 2023 16:28:48 +0100 Message-Id: <ec2a7c3179e8eb2412289f0683da080b3bc2b18b.1674660533.git.legion@kernel.org> In-Reply-To: <cover.1674660533.git.legion@kernel.org> References: <cover.1674660533.git.legion@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756010310507616801?= X-GMAIL-MSGID: =?utf-8?q?1756010310507616801?= |
Series |
proc: Add allowlist for procfs files
|
|
Commit Message
Alexey Gladkov
Jan. 25, 2023, 3:28 p.m. UTC
Signed-off-by: Alexey Gladkov <legion@kernel.org>
---
fs/proc/root.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/proc/root.c b/fs/proc/root.c index 3c2ee3eb1138..5f1015b6418d 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c @@ -91,7 +91,7 @@ static int proc_parse_subset_param(struct fs_context *fc, char *value) struct proc_fs_context *ctx = fc->fs_private; while (value) { - char *ptr = strchr(value, ','); + char *ptr = strchr(value, '+'); if (ptr != NULL) *ptr++ = '\0';