Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp436895pxj; Fri, 28 May 2021 07:22:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTrkkAMtRLtO6nhOWWcXQxfoU0dLbkAt9mZz+ySKg2Lj1uK12N+EzKAwcBITzA6YQQWPYe X-Received: by 2002:a05:6602:2186:: with SMTP id b6mr7265191iob.128.1622211767011; Fri, 28 May 2021 07:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622211767; cv=none; d=google.com; s=arc-20160816; b=mWFpP/zyCV9RQotCINm7noUpquTG9Zy3rxtaW/cr1j9aGNSbj+ss32w2PpCJmepp0V kc1NoGg5UL10JvsItZyvj1PAA2BmTXym7DOZXBhvdslHf91yds+Me4UUC1rq7ptaeZas 9uYe3Cl3mzzZew2kaHrOr2zFQmSga3CEn8adGmTQKFmHpKHmVu1Orn4moOTLM4qlavEz XR5EAv9kO32jWQ+3kh6D7jMwuYF6uhS3raz8/Pee00mjUV2fkhIXyxOWliagr68ZjpOj 6nniMjVo0jv8PV0kaXYjH3pAbZu4b0BecaTpgf6UxqSN4LTetxXexqAGEwBBM5+IfOPZ rE4g== 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:subject:cc:to:from:date; bh=aMd8YJocMvsnRthCiHH2ee3Rz8Q22L3qUUl9kEQD8O4=; b=hKsYN4ctQo91jmZazr2hPVCq3BXEgFKVxu6HNKMbw8vfXMabB881jtbvxz3Z6LD4Sw y7Y228L/TLCBW1XEpqnJWZ1mIUmuxKtbwRP5xF7guuQRLCFkVp0Gg8eWftU1YdIYyZiz k4fdR0Hmzen2G2WVNRzaP2/5q11vgs1XxgZUGOLlj7z/zv9rgo90526qDUOqbRsHX/Jp 6qK3H1vYY8cQSGL92EfY+u5Hbf9pFhQddfBm2MAOYUO2VMXxPRbQ62K7OkVeknq/2CgU oWMjLjb29eDNZNc5+BMs93iYsD/cGMBuKhto+uuv8ApXVeHigEcXOjrnHhyx5Nx0T6uB LBzw== 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 e15si4795648iom.19.2021.05.28.07.22.33; Fri, 28 May 2021 07:22:46 -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 S236214AbhE1N7j (ORCPT + 99 others); Fri, 28 May 2021 09:59:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:40240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236185AbhE1N7i (ORCPT ); Fri, 28 May 2021 09:59:38 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DBD3B61184; Fri, 28 May 2021 13:58:01 +0000 (UTC) Date: Fri, 28 May 2021 09:58:00 -0400 From: Steven Rostedt To: Ondrej Mosnacek Cc: linux-security-module@vger.kernel.org, James Morris , Ingo Molnar , Stephen Smalley , selinux@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Casey Schaufler Subject: Re: [PATCH v2] lockdown,selinux: avoid bogus SELinux lockdown permission checks Message-ID: <20210528095800.06b6547d@gandalf.local.home> In-Reply-To: <20210517092006.803332-1-omosnace@redhat.com> References: <20210517092006.803332-1-omosnace@redhat.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 May 2021 11:20:06 +0200 Ondrej Mosnacek wrote: > diff --git a/fs/tracefs/inode.c b/fs/tracefs/inode.c > index 1261e8b41edb..7edde3fc22f5 100644 > --- a/fs/tracefs/inode.c > +++ b/fs/tracefs/inode.c > @@ -396,7 +396,7 @@ struct dentry *tracefs_create_file(const char *name, umode_t mode, > struct dentry *dentry; > struct inode *inode; > > - if (security_locked_down(LOCKDOWN_TRACEFS)) > + if (security_cred_locked_down(NULL, LOCKDOWN_TRACEFS)) > return NULL; > > if (!(mode & S_IFMT)) Acked-by: Steven Rostedt (VMware) -- Steve