Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2062013pxj; Sat, 5 Jun 2021 11:20:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbqj2wq9kse4JuGyo0P2E4R7TMb/uJ8z90rKyNx1anMmdIyiFRaMteIfkEdWGx3yqExfRy X-Received: by 2002:a17:906:85d5:: with SMTP id i21mr8458384ejy.360.1622917203327; Sat, 05 Jun 2021 11:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622917203; cv=none; d=google.com; s=arc-20160816; b=vcvJAUovZWAg1eVClYK9H5tKvbJEBm8rzqbtbDbwF0KtaOQ4WfxW8tMvXXWIsl1y5R rtnR/tpKVXMKoyArLNMeIl07rdIgeMmOpGhkCZ4cd+88djHHNCQSyV2J8F9o9zXFxomX d1bluSTTVkcEtnvtuVONhzrNGlOdNz41n6mvLk1uab78JU3/cNd8iKkFOaL/Zz5VLdMO HwW3nlh2WvHvNf2pOSzBigpOhh2xvFqIaZBq0BtETn1V/jiO2uiCBRSyAd4J0ONBbmVR mIE0jUNlOYslwknYqJDmFkrZImzQ4efr062xG6iL924kNlhiaE23Ep2T8dKzFCAaBcYW EfLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hWseLMsHC1Tl+tjltvawHbNPgfRx7qxCEi8/dkUNOU4=; b=CMB5cL0AJNDdK30x7GVF29ZMwc9oiLZhDX6wVX/3GCIPx2FA/kmLZZ5l8VZB6WNUiE n8CxOkhK1uvz0oNRE8NlntPJN5kq+XwrwLfBdXGvOHcGDANglCuzgf1ZwQjtlbiTr/hb 1L3P0YT11VbY8sfqylx5Bn3MsM8k2+0D9PKY5bK+eym9xQPX/hn+IDbnOWxefvqxwgHw tvQGu/Zp19Ezjg139YQcxphpxJTVT+Mi+5Dc+zrZNYRTlTURzQStQtFOTw5pPVnbGVW1 NcOz9lTBPMXTnmrLIKgV3dfxSOnsAPJlo+R79oG1b9fIe7yp9V9SLVgYvdFgYCE9NDvD NaSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=dq91qTUD; 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 l15si7794410ejq.530.2021.06.05.11.19.40; Sat, 05 Jun 2021 11:20:03 -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=pass header.i=@linux-foundation.org header.s=google header.b=dq91qTUD; 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 S230048AbhFESU0 (ORCPT + 99 others); Sat, 5 Jun 2021 14:20:26 -0400 Received: from mail-lj1-f180.google.com ([209.85.208.180]:44911 "EHLO mail-lj1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbhFESUZ (ORCPT ); Sat, 5 Jun 2021 14:20:25 -0400 Received: by mail-lj1-f180.google.com with SMTP id d2so11849178ljj.11 for ; Sat, 05 Jun 2021 11:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hWseLMsHC1Tl+tjltvawHbNPgfRx7qxCEi8/dkUNOU4=; b=dq91qTUDZfLAHHlQj01Xackwp7mLXGslcYSqKR8QjQWjay1MPlIiBx9Q2OjLRJv3Ny tUvoHIhp+fIOQUEt5cgx436HWwJytvd/+6hnvkb9my5cWuHI21RlTnevNOOSMWGTQ9Xp QlUNP5FJUEwnP+uHbMzVIztOiIoJLIajgm2Dk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hWseLMsHC1Tl+tjltvawHbNPgfRx7qxCEi8/dkUNOU4=; b=OXu+FPoJeoDVWVIs7TnPKET7EsWbPo4ypMbvv52RnHapSe08cd4O9C5LiEeFv38qCJ R3AqWrLNNkcTlIvXQIfQvPH1bC2s2mPV/zOXNu7Y7wpq3ruClsi9CATdeHtcCNgptfDu vPK7cJpMclRqSw6cD7CbrjoD68STvqs/XWhGDZ/XBKSIe8tVEjv8/09gUKeHtkkUILnk msZDItZUQ2wFbXGQ8kSynE9kvElXsM4nHc+3K1Smf4X0Zc9nKiTKrf9LXrT/qUN5qo/9 6PabMm8rC4WHZjd5OSVk0PcovSIlql73A+z2fIj5bjzfQ3QJnGgNsKe8f+tneDSrHkWa I3bg== X-Gm-Message-State: AOAM531Zp8CzLf7+4sEdC/9cLM/cRBnSNqS/Qcc5+axhklUCtVq6qEtw df97jiUlRWAvPxjO1X+JpgWKGYoUknmLVGav4a8= X-Received: by 2002:a2e:870d:: with SMTP id m13mr8346842lji.250.1622917040459; Sat, 05 Jun 2021 11:17:20 -0700 (PDT) Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com. [209.85.167.53]) by smtp.gmail.com with ESMTPSA id h8sm930142lfv.52.2021.06.05.11.17.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 05 Jun 2021 11:17:18 -0700 (PDT) Received: by mail-lf1-f53.google.com with SMTP id f11so18992285lfq.4 for ; Sat, 05 Jun 2021 11:17:18 -0700 (PDT) X-Received: by 2002:a05:6512:374b:: with SMTP id a11mr6305938lfs.377.1622917038058; Sat, 05 Jun 2021 11:17:18 -0700 (PDT) MIME-Version: 1.0 References: <20210517092006.803332-1-omosnace@redhat.com> <01135120-8bf7-df2e-cff0-1d73f1f841c3@iogearbox.net> <2e541bdc-ae21-9a07-7ac7-6c6a4dda09e8@iogearbox.net> <3ca181e3-df32-9ae0-12c6-efb899b7ce7a@iogearbox.net> <64552a82-d878-b6e6-e650-52423153b624@schaufler-ca.com> In-Reply-To: <64552a82-d878-b6e6-e650-52423153b624@schaufler-ca.com> From: Linus Torvalds Date: Sat, 5 Jun 2021 11:17:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] lockdown,selinux: avoid bogus SELinux lockdown permission checks To: Casey Schaufler Cc: Alexei Starovoitov , Paul Moore , Daniel Borkmann , Ondrej Mosnacek , LSM List , James Morris , Steven Rostedt , Ingo Molnar , Stephen Smalley , SElinux list , ppc-dev , Linux-Fsdevel , bpf , Network Development , LKML , Jiri Olsa , Alexei Starovoitov , Andrii Nakryiko , "David S. Miller" , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 5, 2021 at 11:11 AM Casey Schaufler wrote: > > You have fallen into a common fallacy. The fact that the "code runs" > does not assure that the "system works right". In the security world > we face this all the time, often with performance expectations. In this > case the BPF design has failed [..] I think it's the lockdown patches that have failed. They did the wrong thing, they didn't work, The report in question is for a regression. THERE ARE NO VALID ARGUMENTS FOR REGRESSIONS. Honestly, security people need to understand that "not working" is not a success case of security. It's a failure case. Yes, "not working" may be secure. But security in that case is *pointless*. Linus