Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp864343ybx; Thu, 31 Oct 2019 02:03:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwfoxkE0afFINn51ETgw2LwSoQ8rTsSUXt/PxROmiIRq3DPS4eJpFPr/VnRKSKTZM++CA5K X-Received: by 2002:a17:906:c801:: with SMTP id cx1mr2741501ejb.266.1572512586947; Thu, 31 Oct 2019 02:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572512586; cv=none; d=google.com; s=arc-20160816; b=NF4aau6wFt73uelUG+TNlLVsSXUxzeC+IKii22wvJN5Yl0YmnQCTWAzMSeGUqhW8Sk xRa6wPJ0cF+0yIrf4Tn4rurRRo4+QJySqghnfSRkJDruVrzd5WlD3cea0tNy4hR0Fqjc sI8lBGOWXWbfCLFCwDfPTz0MUwhbgrgSRCiUVOLnU7jKqPxE8txxpRWyFqnVqOwWdSYx OUitudK7GvkXJUyCf1o5HGJVJU4brQHc/wb64fFDMCQKqBlIn2ZxEiUoAROWHqhiXzxF N4rrcWr3McyQqTWIIDgQpSOVCGPbDm5Ek5LYTQKr3dszPEag7o1Z+f9BlAUzYc8fKfPg sosA== 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=y+lN6OouBuoSQt3ETowJ/+pYDKU3ueEIqgC5n3IlEcQ=; b=IJtxzRBo5lKvWmOLzqiQdlVVUxvUZHs0VtXP524egIKR7OmPG9i1StTAP06fd7SIB6 j4rb9VoV1FYq6dIDBy0W/l7nMcA87kO51Vbe8N4Zq96G8BskSMirz35bssW/ZnzWr1mp uk/FeBbeIEjzEfolTcGx2S5Z9FunUpqKgkRwdwcs9O3J56UEVY5tIZdYf/0gLR4dIOYb 8ksnLXxpqkUKo7ONRug61sHjzCB83jKqrk7mzP9bEzSZsFDCUT8MgldkM3KlCYt8613R VR7mOiVH9f7pJ0PNHtctcRXRQFd0X3YZV1IMjcjGWht7VFNgXeEpTpGXGHtMVCtgQUSm byQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XfIzIH3h; 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 t16si3218541ejd.435.2019.10.31.02.02.42; Thu, 31 Oct 2019 02:03:06 -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=XfIzIH3h; 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 S1726971AbfJaJB4 (ORCPT + 99 others); Thu, 31 Oct 2019 05:01:56 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:36642 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726897AbfJaJB4 (ORCPT ); Thu, 31 Oct 2019 05:01:56 -0400 Received: by mail-pl1-f195.google.com with SMTP id g9so2427286plp.3 for ; Thu, 31 Oct 2019 02:01:55 -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=y+lN6OouBuoSQt3ETowJ/+pYDKU3ueEIqgC5n3IlEcQ=; b=XfIzIH3h2eLFU9EjoJKF0OPU/HRYonBmX8s1z/SEss99D8tpfL9bbiZhKhXCSGRdd+ CJRGhu6b9KeI1ZxcXGkZTYWKzeBDhkfrDGoL4YslFSntF7tmY1Su8GarxX4FJsvC09iv VpPbF3zI3XKkXC5esWyLJFqiPR82fBe24X8G2td9u40dvG8Zreq0vassekWSSvmpQwZX ybf3+w6TiFeUopfVf0lxGNI/1NINenwJ7IDhhug0DNRzJCH3jJeDlOIjYGXwfUiaC2Gk htgg0gwd6stxCQe/dklWynj2OlRwk6ctcZC2eTNzt82qGIYPKX62v5UIigUpDCjltx2N yj/Q== 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=y+lN6OouBuoSQt3ETowJ/+pYDKU3ueEIqgC5n3IlEcQ=; b=eM9nqopFBvAeN7hD3If4iiRzsyORF90UOz3uj9wJjClzUXuv4hjFmxXvYqcTsXvn+9 QNOCIwyeCqL+ldoqfaz0JWXGYOO75Z13GwwnwZJyDdFrAEnbnfa6aa34VTnZvXlbHrWK zikWM3gI+F804EWhGUDswTcAwIzQmFjTYPnJZdBXK0YX5Hnk9F5BT2lWIubjr58Qoo0m MGu8g5/wa7LsRzWzMjgf/Q00arISyxxB7gyxV51nHCSn+0KUX738SQiXPIrWsRkvl3I1 NEAyEXF2tDP2jmJbc2uGB8Go9muxw3/nr4nZYZ0bAtgN5sR2a8FQevzYrViuqn1HO89M /KZA== X-Gm-Message-State: APjAAAWbPSQOU31Py4HE+3zHf5MTaNNkeTG+WbpYzhVP85W8j964N9Nl h+2y2OvdaSi+8EyymhrIaj7xpN86WtzwC84qCJ/J3Q== X-Received: by 2002:a17:902:7b87:: with SMTP id w7mr5316993pll.325.1572512514689; Thu, 31 Oct 2019 02:01:54 -0700 (PDT) MIME-Version: 1.0 References: <20191018001816.94460-1-brendanhiggins@google.com> <20191018004307.GA95597@google.com> <20191018162519.GH21137@mit.edu> <201910301201.404F0E3BB@keescook> In-Reply-To: <201910301201.404F0E3BB@keescook> From: Brendan Higgins Date: Thu, 31 Oct 2019 02:01:43 -0700 Message-ID: Subject: Re: [PATCH linux-kselftest/test v1] apparmor: add AppArmor KUnit tests for policy unpack To: Kees Cook 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 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 Wed, Oct 30, 2019 at 12:02 PM Kees Cook wrote: > > 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. That...appears to work. I really can't see any reason why that isn't good enough for now. I am surprised that this hasn't been suggested yet. Thanks!