Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp565984ybt; Wed, 17 Jun 2020 08:15:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiTcF/X80PCt4qgZt1wtdBJ8b12UyfTZ+sahutZPiCa6WvyhV/R0EAFdnMXWeMq9mFRCoA X-Received: by 2002:a50:f18f:: with SMTP id x15mr7853831edl.228.1592406938020; Wed, 17 Jun 2020 08:15:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592406938; cv=none; d=google.com; s=arc-20160816; b=Lr6fpK2TTkK7JhAhbYFl0xYG7s9JABwtNV0TgDDSQgky+V71WqNdn4Ae7QuPhiQRPc 0kUIuCvdhlXwERzgLzfnsqHfSfthxzmAre4ZftdlQIABZdTqoZJfwMHQmXxAY8WfDe/b 3OZDUs8I+4esb3izyjSgPZezChz94udEjhRYMITB9cYV/1B+KNg6vwuFOmo744QWZdkz x9B1UdjS3Jr9+KryB1gy6LmxPKSvDulE+Yq1xBMZ32Y9E7h0DJc4wPNM5FRskgmzynNz rY8U22y2XRbtMB1YHkglIDis6W0g8QHSeV/GrKIa5rgTM/li2CMqg1HowwSU0E937147 xvCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=7Em4MC4EQzp9zY211Niwju/uTQx/PBZTsUAMP7BVAwg=; b=nY2lgB2VMI3xVDaP9lETfgW5fteA9J2madwMmPo7H+AHFZjeILP8ruF23792dySaks GlD8PggjIGWUrotVQHGbknc/HTqAegEzz4s7UIvzB0GHaBnHoUaCAeW52RS81ArUbwn2 IDMFb+quMQKDs/LH8xs8pMh7JPkPux4SDwP39LLALiCypezULmE8VeY88OEUqcfUIb5B aVnI4CLVpPYR4OgKauPISJlIdoP64S/cn9Pgtea2pXv6tSbEIJ7fUu7hW35YUbq3MuSf pbnaPVWlmptrLtyGgskSW1nFSWU4XAtAggpQJx1vdI9Xex0iDub5zruQipeBUyRKKzBr bsYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hFDq8l+m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mh21si100283ejb.181.2020.06.17.08.15.15; Wed, 17 Jun 2020 08:15:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=hFDq8l+m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727777AbgFQPKf (ORCPT + 99 others); Wed, 17 Jun 2020 11:10:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727084AbgFQPK3 (ORCPT ); Wed, 17 Jun 2020 11:10:29 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50922C06174E; Wed, 17 Jun 2020 08:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Subject:Sender:Reply-To:Cc:Content-ID:Content-Description; bh=7Em4MC4EQzp9zY211Niwju/uTQx/PBZTsUAMP7BVAwg=; b=hFDq8l+moKpj4m4/2ZppXGE50e 64sBKKvo6scapFrQwCZx7bOa3x09Wb3RNc+msxtiAafsymcob9Yilu70Y1qq9z9h9zCelgxb4UGp9 PJ0c73dKBuo2csJ0yJzmkerptFRicrqvGgUIDueqNy4upZDIP5jY2qv5tEw6f3d+tdmHax51cHM6o wopQtSlbK3sPNaW8ciPRK3/aUaU+IG/nxRDKozBeQEKP1kaEvxrfvvGtRE7DW6ihm5QcCpZj9oMBE QGwrTeG3hLnVmlGG5+yLcSo8MqVHeXNTYScx641ztg9lGGnut+wM+EWJfTz8fxuG45/g0ZGTs+RqV oKgRyXHg==; Received: from [2601:1c0:6280:3f0::19c2] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jlZht-0005HH-1B; Wed, 17 Jun 2020 15:10:29 +0000 Subject: Re: [PATCH v3] debugfs: Add access restriction option To: Peter Enderborg , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Andrew Morton , Jonathan Corbet , linux-doc@vger.kernel.org References: <20200617133738.6631-1-peter.enderborg@sony.com> From: Randy Dunlap Message-ID: Date: Wed, 17 Jun 2020 08:10:26 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200617133738.6631-1-peter.enderborg@sony.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/17/20 6:37 AM, Peter Enderborg wrote: > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index fb95fad81c79..249c86e53bb7 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -827,6 +827,17 @@ > useful to also enable the page_owner functionality. > on: enable the feature > > + debugfs= [KNL] When CONFIG_DEBUG_FS_RESTRICTED is set, this parameter > + enables what is exposed to userspace. > + Format: { on, no_fs, off } > + on: All functions are enabled. > + no_fs: Filesystem is not registered but kernel clients can > + access APIs and a crashkernel can be used to read > + it's content. There its nothing to mount. its content. There is nothing to mount. > + off: (default) Filesystem is not registered and clients > + get a -EPERM as result when trying to register files > + or directories within debugfs. > + > debugpat [X86] Enable PAT debugging > > decnet.addr= [HW,NET] -- ~Randy