Received: by 10.192.165.148 with SMTP id m20csp992281imm; Thu, 10 May 2018 04:04:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqmmdyexcPJPY4nUkZS7dBqDEe899tIuhWFjV8ICoEk713nGEFNTwm3KlYXkZKEP5DwNnY3 X-Received: by 2002:a65:6604:: with SMTP id w4-v6mr789197pgv.102.1525950253945; Thu, 10 May 2018 04:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525950253; cv=none; d=google.com; s=arc-20160816; b=j4wzVlTm11n/4jnxgIPON4+DasU5QLwp8COtJ5zFtiOzdFWOnO9QzCXIUuZVdjfC1O EPacOvXxkvsbcl5NE/sRP9BmU4MQgKxECayzaNRuPAzdTqEuFUS5ycC2A6+R9iKQ0w1i OZTJgkxWzEnEAVvpMth3cf5RkJvZokJCYOQkOYLx+8mDAS8k47UNBjBmIusMR964EP0e 7bSKUjnfXJWWO8Kc8U4z0dZSZv3bNpFhSfeP+lEbhy2Gj7wcJSQSn5zyY9IIagqRFry/ TH/MkJposW+hr/i7poL6sfE3/S+DqV9wNbAzo873JB5v/ekP1+AtUFD56RUGFkirEwFp mreQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=M/vQMyuhTq0EaZoqe7Ys/iA2B/0Q1s7Up5CXFzqWeVc=; b=aZIFzhLhf/pk7XMm0lzUerdF7+W6mTOgs8YU3Z238D++MxaX+zmjtjGHujC7BQf+RM 0oRFmW7wkcNZEfq8Q32AsuFzVi1MFiyv6CEm7W/A+6OUl61CxzMCQog9fl1CXSEn7Zdo hUIvz5UaNZ1r2bKj0rR7nHNajT+a7rJKhkofdwHFMcfLqhu1OaubzQjLqKTN9yE7CAqC R7sZ7ULIc/VbgiugFmCLjuUN/fIfyRkksXFAKdSf0jld4uJZyybXjZ1ZUXmm9ww7MjpV E16h0za23KNsq8/sp1GUgiNuO9rOHPbw3tBJs7KHtSWujQbd3rgkv6hFNrVmfyoIL3eK fq2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a33-v6si512011plc.507.2018.05.10.04.03.48; Thu, 10 May 2018 04:04:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757006AbeEJLBS (ORCPT + 99 others); Thu, 10 May 2018 07:01:18 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:57350 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756679AbeEJLBP (ORCPT ); Thu, 10 May 2018 07:01:15 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 9F23D8049C; Thu, 10 May 2018 13:01:13 +0200 (CEST) Date: Thu, 10 May 2018 13:01:13 +0200 From: Pavel Machek To: David Howells Cc: torvalds@linux-foundation.org, linux-man@vger.kernel.org, linux-api@vger.kernel.org, jmorris@namei.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH 24/24] debugfs: Restrict debugfs when the kernel is locked down Message-ID: <20180510110113.GA6977@amd> References: <20180413202241.GB4484@amd> <152346387861.4030.4408662483445703127.stgit@warthog.procyon.org.uk> <152346403637.4030.15247096217928429102.stgit@warthog.procyon.org.uk> <27818.1524148547@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline In-Reply-To: <27818.1524148547@warthog.procyon.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2018-04-19 15:35:47, David Howells wrote: > Pavel Machek wrote: >=20 > > > (1) chmod and chown are disallowed on debugfs objects (though the ro= ot dir > > > can be modified by mount and remount, but I'm not worried about = that). > >=20 > > This has nothing to do with the lockdown goals, right? I find chown of > > such files quite nice, to allow debugging without doing sudo all the ti= me. >=20 > It allows someone to give everyone access to files that should perhaps on= ly be > accessible by root. Besides, if you disable lockdown then you can do thi= s if > you want. As I said this has nothing to do with lockdown, so does not belong in this series. (And besides, it is bad idea.) Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --KsGdsel6WgEHnImy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlr0JnkACgkQMOfwapXb+vKsZwCfVdFRRD0vggdq5dy87grncAKq zooAn1UP9zxiDCMEYTDHNkNjszBUVend =+dt4 -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy--