Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp739968ybm; Wed, 22 May 2019 10:40:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxF0k5bxef22SNacFz9X/ZUuHRo8CkTfEfxzKC5RF8YxiHX93Gj5JdljpJomDK3ja/mPLKv X-Received: by 2002:a17:902:9a07:: with SMTP id v7mr92761232plp.180.1558546851945; Wed, 22 May 2019 10:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558546851; cv=none; d=google.com; s=arc-20160816; b=XNQboUIxY6y5bl/dbnZhOb6tQFUTslGqEc+G2lPeBEQUdOFw9MWyMd0mSV+as1nZ7N qk0KFhpQ7TDn4Z5Puc2g+X4nlsYHfL6z5eMk0HWwdjVMvFYxATMio+WlGAAqcENWPS1H hSDQbDwWzXN2bsLNv/f5Rp8mz6+f9yKR1rAhxoxbIROk/CK1VnOQ5N8pLUOQR+Shrafc Az1AWu1ED/nmDUG3sr3zBPcxPdf3pGC9VG4yQ++hYD2rRLij7XtM8KYdbypdIHFVH3ox IEqWnVDXXQgk7IGrWHdaV6/NoG5aQy1GlE+Wee75OTpvU5H6iZVRgmIWQ8Gobow8tFzF CT4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=yXHwKRBaxNZUqH116t+JoeDJ1ugnuKx/lu7qvYOcfvA=; b=NgS62IsgRvgil4WO5ROPdKHxpgtCfBG7StNZIizH/vZawvDRPeWRg/WQTkCyfOpdpW redMU7vdgZj6ZK8Id14SfkMXYUDs6xZauPXxpl5Y7RFmfhYUTefkZtBwN5XMnDXfQjYe ZPJRKruPTTwz7a+ixYwwEMxwjwNFNNPgLy7AtcIR3wk2gdFxQX2a9n9zptnZkWOfW+FK sf93Q3o47GFaQcm3d9Me6PoXZn+gs3T7TxpgR5Eu5s1yxtjvZg6B8mO1XQVocqcOx5WO eAAn8nDlcFw9Ok1Wya4LrFKr3mknOI7q0yI77xC4zQZhmS0+wtfRodKCpzb+5VVwEvs3 SgDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="L/aYGmU8"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si10088349plq.169.2019.05.22.10.40.36; Wed, 22 May 2019 10:40:51 -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; dkim=pass header.i=@google.com header.s=20161025 header.b="L/aYGmU8"; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730124AbfEVQtF (ORCPT + 99 others); Wed, 22 May 2019 12:49:05 -0400 Received: from mail-it1-f182.google.com ([209.85.166.182]:35260 "EHLO mail-it1-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729511AbfEVQtF (ORCPT ); Wed, 22 May 2019 12:49:05 -0400 Received: by mail-it1-f182.google.com with SMTP id u186so4154312ith.0 for ; Wed, 22 May 2019 09:49:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yXHwKRBaxNZUqH116t+JoeDJ1ugnuKx/lu7qvYOcfvA=; b=L/aYGmU8ZKf2hWToIHwxxXaDfR/JGv6e+gE3X0402R7BWItbU86h0f1fs99z/VrC6X W7FwuMvSNsqL807Yf2RSOq/Nv/7iyjsCSJnk0dAgkpktRS2LYmQVxlj0FvHbCT9t0CFO 1I+Ri+8y8+10X7bxkKVVRzgOPZKnMdABq4eD+cyGPS9SqeD2UuIv4+sk4cH/qDtfvBrS v+HXxlotFwyLw7meHG0wkaDfpXNRsjD3yXZHBtQF7iShFDT3EbZCT8Q6p1KNDTj6AM8m sd5gY2G0xu2opHQoBRP4S+JOHrf/lIasQkNfLHnwf+iGjQTC4Y9nG3IRxUfO9t8sbLyc rovQ== 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=yXHwKRBaxNZUqH116t+JoeDJ1ugnuKx/lu7qvYOcfvA=; b=o6X7YnSSSmsiP9IeGl9daXTdkKEz149O7CHolZcZVUAgIBu7OgkumUcuoDCFn7evBv +gl1Ct3Nv4T4pNfkufTw/ygf/dYfgGasvBn1pxow7dt5Z3lndK/sCoR/tPLZfAYODLMJ 1765yEkBNK6Hx0Hf5iA0Dj1NUBSQd3FcUoNv+xryNAZcCwG2r92JKdj6zwDL0PSvpzKF LwnfmFCgneM535o9YYjAU0T35LpuSuDpn68Ii0h6di68kSkJ3SXaWqPHoIwUfAaGKhnm n6enHCmMqKKOAABQS7qSD6uAvLRcBpc88FE8Yb4PyoLYoJMsaSZhE3J5rfHnBmakvaY8 7osg== X-Gm-Message-State: APjAAAVwfzHHGM5sdyZUG3A/2oepcaAMUBGB1fXGCtIfaCh2jIKuMeYf 5oJuK6/r6hpFzA7QQevJovrB1i0TmMgPEFwnFlmMeA== X-Received: by 2002:a24:a943:: with SMTP id x3mr6102296iti.64.1558543744085; Wed, 22 May 2019 09:49:04 -0700 (PDT) MIME-Version: 1.0 References: <20190521224013.3782-1-matthewgarrett@google.com> In-Reply-To: From: Matthew Garrett Date: Wed, 22 May 2019 09:48:52 -0700 Message-ID: Subject: Re: [RFC] Turn lockdown into an LSM To: James Morris Cc: LSM List , Linux Kernel Mailing List , Andy Lutomirski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 21, 2019 at 7:40 PM James Morris wrote: > An LSM could also potentially implement its own policy for the hook. That was my plan. Right now the hook just gets an ASCII description of the reason for the lockdown - that seems suboptimal for cases like SELinux. What information would you want? My initial thinking was to just have a stable enum of lockdown reasons that's in the UAPI headers and then let other LSM tooling consume that, but I haven't spent enough time with the internals of SELinux to know if there'd be a more attractive solution.