Received: by 10.192.165.156 with SMTP id m28csp1142892imm; Wed, 11 Apr 2018 13:14:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx48SinS3i80YUvpcIwxzkorN3CEn8jp6f8P8iVvdolDbB5/V4BvF2+bdf4YxoQr1GWGSgW0s X-Received: by 2002:a17:902:2941:: with SMTP id g59-v6mr6576245plb.55.1523477650474; Wed, 11 Apr 2018 13:14:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523477650; cv=none; d=google.com; s=arc-20160816; b=XVK6d2N8zNbX5gd/aYCdbBM9Gn3+6KgHqRTfsVIXFhPZF093QVLlRHkBJnJXJEeyi7 Lr+4+4dBflkEEL6PCCSJ03vFY1jcd1mwvKHlwqWdyAFk1DBxk9GQRjmlXURwP7o/bGAq 3mL1OC1rdaBFb5me48bMjEuX+nLuiKX+r5cxDF1n3iy/Ug7qLpSyNclY3xkXNz15Pwku 8a1IiRc8wXJhYf0pxVz6Vgi+IpR/TGeLk8vRFmXTP++cEBM2zuEpSr7Ltl3mfBkcJHrJ ldTTRwsbsZGYtW8GNSBF3xZY+FBfgyOadjMtP7Lm6+eK7sAoXtJUrNisFY3J/L6LI8T7 zufg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-transfer-encoding :content-id:mime-version:subject:cc:to:references:in-reply-to:from :organization:arc-authentication-results; bh=Bfv/ROcQsxixTN6Ubn1cIf4EKw4uxfScpaHLpbmXj/A=; b=qpueSwWURdZHo7U2jL1bg9eFK7Ty4H8V0gT6PjQGuQxHmSraPPK7rHwUurUd/UiL7W iDmaWRJ+tL6l8BhqUskAzP+kW9D8PBf5eynX7rjt++yECv+q1FJK7EgjeHXcCIfCr0kD 2BgbpxKX+ZF0/6dfQJlWlDr6Di+qZfEQrMoGnp28UB35Lp2B9jXihI68C7uH0pJ+QCPd nIbtZLocNU+TonKwBlm8Nhrz6HDyBHDrGFxu17eAYZfasNTVQwr9zF8iz3uuG1e/pWkL 5zEHaZaJtiE+tskGDM31PcyRYwnJDLRowfxyG//gd1Hs1AzrDGQAlu83S4wJSE1YW7Ck g0Jg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i132si1186257pgc.509.2018.04.11.13.13.33; Wed, 11 Apr 2018 13:14:10 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757407AbeDKUI0 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 11 Apr 2018 16:08:26 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34620 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756097AbeDKUIX (ORCPT ); Wed, 11 Apr 2018 16:08:23 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E7B9E4182D59; Wed, 11 Apr 2018 20:08:22 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-8.rdu2.redhat.com [10.10.120.8]) by smtp.corp.redhat.com (Postfix) with ESMTP id 043C9215CDAF; Wed, 11 Apr 2018 20:08:21 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <87zi29k26z.fsf@xmission.com> References: <87zi29k26z.fsf@xmission.com> <152346387861.4030.4408662483445703127.stgit@warthog.procyon.org.uk> <152346403637.4030.15247096217928429102.stgit@warthog.procyon.org.uk> To: ebiederm@xmission.com (Eric W. Biederman) Cc: dhowells@redhat.com, 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 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <12740.1523477301.1@warthog.procyon.org.uk> Content-Transfer-Encoding: 8BIT Date: Wed, 11 Apr 2018 21:08:21 +0100 Message-ID: <12741.1523477301@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 11 Apr 2018 20:08:23 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 11 Apr 2018 20:08:23 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric W. Biederman wrote: > Why is mounting debugfs allowed at all? Last I checked (it has been a while) > the code quality of debugfs was fine for debugging but debugfs was not > safe to mount on a production system. > > Maybe the code quality is better now but for a filesystem that is > not supposed to be needed for developers letting us mount debugfs > seems odd. I agree. But debugfs has been abused and it seems that there are some things that use it as an interface between a kernel driver and the userspace side. David