Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1143982ybl; Wed, 8 Jan 2020 11:48:29 -0800 (PST) X-Google-Smtp-Source: APXvYqz9dOfAv3esMTBVOKmD4DBQW2fRoh9Q2mGd3uLhHBH7F+E2FRA6hviKmuLqbHPZDMe8z2to X-Received: by 2002:a9d:6183:: with SMTP id g3mr5400429otk.304.1578512909765; Wed, 08 Jan 2020 11:48:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578512909; cv=none; d=google.com; s=arc-20160816; b=t8gj4CoRoYuKW1twB5DAENuMwH5tiP4LCMmOEvPFLdwcgs+ATMsMnBKr8S1jMkFiki EuoIrYbr3ymxIyNvPgMiVzQJgHy2YHaqB7Rv9FXinjRrS9Ov6hN35IUpjDsN3gkGm41m gTantt74P5a5krP5bjvtPwb5d9fRbMSmN4vDwohcs1a9aa4xQo8sGxYWdqFKmB79oUev 6xOnIhUevdOTXE6Le66ywU5sUJQzZKHaggQluKhmh8rkzBIFJHn7gnjp3gsPVhUYbXmt cJ+vOkmZ8Q0Rtl/n4GEl73SfwvTn5P8u6wzhzEeOQab4sY6h217UTQwwjJIDpmua0Lah 54+g== 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=/rDDenUZgY6cuGZ00UUzQYEoYPXbO9NBnhnCMhvO4zc=; b=IM0/CKhA5gD3QYuQJrOKfz0fiKtMyW6HCeylHgYnj4kNm76FhIcfVsYq055jzZz/Tk 0D2NdsmmuncA9HnPVTaPHlXvgL3j89qXGKt123t390W51DuJZRy7RhkxZHE3T3Hr6z7O uVoQlh0Ul3Anha+0GloK8/Ul95iVxi6vhCCw36AoQhvdPJzhEKP/7nhE2XWm61Jkjtpp fLirhIrLgJD5OPdCpBjj5BejtgcRt+cxTTkT7fKzWI0gQPryZVaPu8Blb993hvtJSwPJ GuRrCwUuqk3EXNHVDX9s3J+rnghGligthVYq3cvQX2uNtRwDLLW4rEzZjNyy3RPQQpQ7 rAng== 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 a9si2338067oib.59.2020.01.08.11.48.17; Wed, 08 Jan 2020 11:48:29 -0800 (PST) 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 S1729640AbgAHS7H (ORCPT + 99 others); Wed, 8 Jan 2020 13:59:07 -0500 Received: from namei.org ([65.99.196.166]:56264 "EHLO namei.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726401AbgAHS7G (ORCPT ); Wed, 8 Jan 2020 13:59:06 -0500 Received: from localhost (localhost [127.0.0.1]) by namei.org (8.14.4/8.14.4) with ESMTP id 008IwTZG029133; Wed, 8 Jan 2020 18:58:29 GMT Date: Thu, 9 Jan 2020 05:58:29 +1100 (AEDT) From: James Morris To: Stephen Smalley cc: Kees Cook , KP Singh , Casey Schaufler , open list , bpf , linux-security-module@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Thomas Garnier , Michael Halcrow , Paul Turner , Brendan Gregg , Jann Horn , Matthew Garrett , Christian Brauner , =?ISO-8859-15?Q?Micka=EBl_Sala=FCn?= , Florent Revest , Brendan Jackman , Martin KaFai Lau , Song Liu , Yonghong Song , "Serge E. Hallyn" , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Nicolas Ferre , Stanislav Fomichev , Quentin Monnet , Andrey Ignatov , Joe Stringer , Paul Moore Subject: Re: [PATCH bpf-next v1 00/13] MAC and Audit policy using eBPF (KRSI) In-Reply-To: Message-ID: References: <20191220154208.15895-1-kpsingh@chromium.org> <95036040-6b1c-116c-bd6b-684f00174b4f@schaufler-ca.com> <201912301112.A1A63A4@keescook> 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 Wed, 8 Jan 2020, Stephen Smalley wrote: > This appears to impose a very different standard to this eBPF-based LSM than > has been applied to the existing LSMs, e.g. we are required to preserve > SELinux policy compatibility all the way back to Linux 2.6.0 such that new > kernel with old policy does not break userspace. If that standard isn't being > applied to the eBPF-based LSM, it seems to inhibit its use in major Linux > distros, since otherwise users will in fact start experiencing breakage on the > first such incompatible change. Not arguing for or against, just trying to > make sure I understand correctly... A different standard would be applied here vs. a standard LSM like SELinux, which are retrofitted access control systems. I see KRSI as being more of a debugging / analytical API, rather than an access control system. You could of course build such a system with KRSI but it would need to provide a layer of abstraction for general purpose users. So yes this would be a special case, as its real value is in being a special case, i.e. dynamic security telemetry. -- James Morris