Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1502383ybk; Thu, 14 May 2020 10:30:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1XC5FIsWfFg5QfwEirnTjVzn6YiyfHDCKbfWNZ3HYUxtKnjWK/tvNeFDCzrG6P0gt6udW X-Received: by 2002:aa7:cac8:: with SMTP id l8mr3362006edt.103.1589477412949; Thu, 14 May 2020 10:30:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589477412; cv=none; d=google.com; s=arc-20160816; b=HvRgHDN8gp1iSQhQwIWh0T5U14zarmxVRNYckEk9RMfsISGUuXhdajtT8QXNzArERb rMms3+75PypG7yvTHtI7TrA+ktNFCgHtNSP3ej7BSejN5vyn6zl9FeuAkL87dfQumYJD 95SENpK8hInXaj9kbsGmd0pxs8HmKm+sxA1DGSINPVt+4Qe0NMB4QXdq5JGSj3bqEy/s dmgaOZNMRhCHbmly5b/DK46g+qyAYmbs2oLIlJbDJ1q+JmqCeR+uYYldIFiCicDM9yie kWklNQMrr3xyQALnI0dvIjfCBT9C9a3G7fRmsHYYOfp/OeM9NlvUwJUaeCygagwDsMmY 02fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=0ljgkCbcmvCU0/9+8Qh0mKZ3oE2q0Y+N1K3auG6BMeI=; b=Atgovsp/8RvU+ceT9a/NT/kVzActnGxwPon6EM1rKVE1RRE3qGEI8aO6y7nVESVFwN poCNC6WfKehvRnO08mvNNT11m0dhCivEGsgllzC7O5n4LXTlFjGaEdD/0tD7nK4EJxqJ 3ykHPh0ydi7a8ZrRR20U1OCnG16f2dPQy7ifhyi8WyVyiK2mPAMUD6FYDqJ6wAV8H9EM LJ/d9ontOe6Lf4GSi4XZGomjUDQS0HUFhG8jD2cg5SvoNHyFSUIDLbyqaw5yeDdUCgXR qSn7v2DiJ1DvZuij7daZ8MbbAg68wz1eGYp7i1jsDUk/FaZnniiHVzv0uDnPVSvmV9vq gLOA== ARC-Authentication-Results: i=1; mx.google.com; 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 b23si2001375edw.116.2020.05.14.10.29.48; Thu, 14 May 2020 10:30:12 -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; 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 S1726133AbgENR2U (ORCPT + 99 others); Thu, 14 May 2020 13:28:20 -0400 Received: from namei.org ([65.99.196.166]:58990 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726050AbgENR2U (ORCPT ); Thu, 14 May 2020 13:28:20 -0400 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id 04EHS8QU026941; Thu, 14 May 2020 17:28:08 GMT Date: Fri, 15 May 2020 03:28:08 +1000 (AEST) From: James Morris To: Jeremy Cline cc: "Serge E . Hallyn" , Matthew Garrett , David Howells , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, "Frank Ch . Eigler" Subject: Re: [PATCH RESEND] lockdown: Allow unprivileged users to see lockdown status In-Reply-To: <20200514140546.826698-1-jcline@redhat.com> Message-ID: References: <20200220151738.1492852-1-jcline@redhat.com> <20200514140546.826698-1-jcline@redhat.com> User-Agent: Alpine 2.21 (LRH 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 May 2020, Jeremy Cline wrote: > A number of userspace tools, such as systemtap, need a way to see the > current lockdown state so they can gracefully deal with the kernel being > locked down. The state is already exposed in > /sys/kernel/security/lockdown, but is only readable by root. Adjust the > permissions so unprivileged users can read the state. > > Fixes: 000d388ed3bb ("security: Add a static lockdown policy LSM") > Cc: Frank Ch. Eigler > Signed-off-by: Jeremy Cline Applied to git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next-general -- James Morris