Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp118117ybx; Wed, 30 Oct 2019 12:14:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwznVUWFqqMr9/LUr93HVyk9BU6mzzD6cRaMsxR1byhbrxkVjSvUwBQMwFyWsLngZmDLi9F X-Received: by 2002:aa7:c942:: with SMTP id h2mr1576602edt.238.1572462875151; Wed, 30 Oct 2019 12:14:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572462875; cv=none; d=google.com; s=arc-20160816; b=aU8Jc8FWT+LVHQANm9BM6u1JHFmj5AZ189GlvR1kUkSaNdZJ2gpdPNGUyLh2ceHZ30 0PdeVX4drZDduYA3jGNq6pGmDDr4eytPwvR21W5afqRUzuJZ40JtlVa6SkVRaC8V9GjB Z/ZNC7AkUBretCsnU2NgXDjggIz2yBD1KnLZPC75OluwV/gddleR5nMIqjtupmo7T+d4 r0Pl4VAGGplhNTUP88W0A+d1TYFOagmqAO9EQWyVI07uciWEcnflKJHvbYpnLn7bqq/j 2pqrXmDtw2EMOd76q/wSXN64i/pW671yx64UI3fliEaB/C9APXGBhHPUtpP4DmiDJdGW XugQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=oGDBahFoMPSIZ29sHXhe1mehZlhHuZjEGPvioRijuyg=; b=WjFNwR1GBRpddWlLVMH0iqBDG5kmf8hT7EwmsmdLr5MHCuCRz0kx0AlZUi4YTMaqNk lrgM9tjbX8kprIwKO5k5rdca2nYvyv8x0W6rfWj9XVL/b9eYtES/uB5v/2B77ACGT/rz uEz15bFvurIyPQPJag0Wug3oWrecEQwzF0J+XJ26/Yvfi6oIDNZbm/wuSM5qIYYXwzmN SF+6kHn+8+OPKrvBwlzj73FpWv/PQh3wWBWnHG3qiKIn4HJtIBH+SI8xPisyaXBuBgm6 9VzBDF5aflnAI/r9iQEr/HCqIOO2Xn3Ja6kLvL+brzhGEz6LQGy8tJDD3Iq1zVs3vyfo h5RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ITHLhKwY; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15si1969876ejw.269.2019.10.30.12.14.11; Wed, 30 Oct 2019 12:14:35 -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=@chromium.org header.s=google header.b=ITHLhKwY; 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=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726680AbfJ3TCa (ORCPT + 99 others); Wed, 30 Oct 2019 15:02:30 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:33057 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726272AbfJ3TCa (ORCPT ); Wed, 30 Oct 2019 15:02:30 -0400 Received: by mail-pf1-f196.google.com with SMTP id c184so2249359pfb.0 for ; Wed, 30 Oct 2019 12:02:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=oGDBahFoMPSIZ29sHXhe1mehZlhHuZjEGPvioRijuyg=; b=ITHLhKwYHLawxDKJoXVFazyKfWfmJx5VWQYSzCXI3uwCtcs0q7fLyaj9SL04wb9vsM RlSKIzlfu4E7whMcthOGZ0RckEeTvwu4OzrBanTEIRe9aOYcmYXOA8e4hm7V0kDaVqJU d50WeQX+Habf5zhjgR6kw/cCCYQZ5jn9IttQk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oGDBahFoMPSIZ29sHXhe1mehZlhHuZjEGPvioRijuyg=; b=SvTXRE0U0ko7f0+NFkSjDMqaPuCpZYv0t6bWrGOCf5lrBtVcXj1iozaBmXtzSVqacY MfUcQnHG3hD8tRdEORtK4M4pzQ+raS+GkTvLWReK84S1h0qFZkIizciB3tjfdTLXX8nD N687DcoEf6NeOjr+ZtQIETN+r1/aII0QxFWfEWcrIKmQ+79pGGGYmkbSvxCgsk0KcrZ6 KaSAnwm1Zp3D7yqi0UMNB0a3y4rnNDxIcpUgQMs2FU2oMPmPrFjc7U1hQ7K71tKkXnit /qIoqNm4Cg1vjlUv00IPqUIB2x4TQhVhNn/bcXNw0N0DwQOjzGcG+V//+Jmjq0DMv5vi fbvQ== X-Gm-Message-State: APjAAAUjC6ilLPztVkqA645RQQO7SPnwCfzucWR0/AT4h63tht/4wgQ6 n9s5460huTp/gnjGLKZj0GAPSQ== X-Received: by 2002:a62:83c6:: with SMTP id h189mr892782pfe.213.1572462149354; Wed, 30 Oct 2019 12:02:29 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id j26sm508386pgi.92.2019.10.30.12.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2019 12:02:28 -0700 (PDT) Date: Wed, 30 Oct 2019 12:02:27 -0700 From: Kees Cook To: Brendan Higgins Cc: "Theodore Y. Ts'o" , shuah , John Johansen , jmorris@namei.org, serge@hallyn.com, Alan Maguire , Iurii Zaikin , David Gow , Luis Chamberlain , Linux Kernel Mailing List , linux-security-module@vger.kernel.org, KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Mike Salvatore Subject: Re: [PATCH linux-kselftest/test v1] apparmor: add AppArmor KUnit tests for policy unpack Message-ID: <201910301201.404F0E3BB@keescook> References: <20191018001816.94460-1-brendanhiggins@google.com> <20191018004307.GA95597@google.com> <20191018162519.GH21137@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 18, 2019 at 02:41:38PM -0700, Brendan Higgins wrote: > On Fri, Oct 18, 2019 at 9:25 AM Theodore Y. Ts'o wrote: > > > > On Thu, Oct 17, 2019 at 05:43:07PM -0700, Brendan Higgins wrote: > > > > +config SECURITY_APPARMOR_TEST > > > > + bool "Build KUnit tests for policy_unpack.c" > > > > + default n > > > > + depends on KUNIT && SECURITY_APPARMOR > > > > > > Ted, here is an example where doing select on direct dependencies is > > > tricky because SECURITY_APPARMOR has a number of indirect dependencies. > > > > Well, that could be solved by adding a select on all of the indirect > > dependencies. I did get your point about the fact that we could have > > In this particular case that would work. > > > cases where the indirect dependencies might conflict with one another. > > That's going to be a tough situation regardless of whether we have a > > sat-solver or a human who has to struggle with that situation. > > But yeah, that's the real problem. I think at this stage we want to make it _possible_ to write tests sanely without causing all kinds of headaches. I think "build all the tests" can just be a function of "allmodconfig" and leave it at that until we have cases we really need to deal with. -- Kees Cook