Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1734969ybg; Sat, 19 Oct 2019 01:21:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqx08dUUtmbLoiHLd/EYRwFlq5Z6cIL2f6XT7XRs1+xWExGK1u80MfCTERI408JAnl77CPVn X-Received: by 2002:a17:906:1b0c:: with SMTP id o12mr12383493ejg.312.1571473289781; Sat, 19 Oct 2019 01:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571473289; cv=none; d=google.com; s=arc-20160816; b=f9p3MzM2TlvuD4YqynqXJNEKZDwPI9ZoPyCkgnrWW8F1PhY07/4V6t+JabXjGxjiER 6uNdfD7BM10KKj+LXHMDqTpYMSSWJSI9RtekYHCY2Dm0wyNQcttbGkyg2rYW8gqqg/VK OGW1D+VkM+47XX9sjoGwyn5Ty7/1XFYsIXMDsPjc6vMStwZnoKt6INH4N9esgNV3TZ3l toebre12QTKPZeHkXrvVysguCAl6DbScoT+HS7c+7GUcPYBkMe/rcgV29g9dz1E7ia50 Nw70uRKlqBakKkbMpOHwakZwqmZSkcK1soU9rEnYBtUwj1lVduvDEurXqbWmUtXWfgnJ cfnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=288Pc59lRoS3fTQSgHjqYaeNRECTkwE7sqDzfLhbInk=; b=MBwizvltxTPIPwIcDmC5QR2IE5bfVuWoRAqiCaCPxaoYlQcjnosOMbgRmMiTBgUtz2 870fhO285edFyhZLYetQsgibR+Dm3EZn1dZvtDD77apfO44GyckItP2txVePDpu/uK4M YGJwbZ5J5NZl2mXOD4nFroazVUuQ0RmxBtJxfijh6lS+QL3eCpBTXhZ4oUMOy96ZFvKT /7X2fYnU4EfvvKaUv2m6Ot3RlO4z13q95D8zY1tysO2WfmJKnhM7zXzmF3gEzpDNJz5B +vRSsuuu2urQL5oKlQaW81wFZRCt8IbxK4q4ar/1OftMgTKdoPl7oKZ01toQJWP9H5nj 2Fuw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g30si5280370eda.2.2019.10.19.01.21.06; Sat, 19 Oct 2019 01:21:29 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408099AbfJRM34 (ORCPT + 99 others); Fri, 18 Oct 2019 08:29:56 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:40921 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389585AbfJRM3z (ORCPT ); Fri, 18 Oct 2019 08:29:55 -0400 Received: by mail-pg1-f193.google.com with SMTP id e13so3302010pga.7; Fri, 18 Oct 2019 05:29:54 -0700 (PDT) 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:user-agent; bh=288Pc59lRoS3fTQSgHjqYaeNRECTkwE7sqDzfLhbInk=; b=tgTBt4GJ/POV5hcHCQCb0YtrRxdKN2/JJgZcfOgJ1dh/QM8ZRHcSCJ13o7k4DkwfUB DpPgxmiGCRW97wFtG0rk8gDJqrJ1BNj6e/A26zh9lBrww2PLlK1tOyJ+09Tcnf+mpqq/ wenvCfaHz+9hdkzgfMlRgF9j2nPC6yDWeHqb7KgOm8y2n3NLaUyHZ/T4Uu8Apz6mUg0Z UyNwYmc705OCG43Jjia7ZDD2FD6Hs/X5WLpvKkvDfb17Bp/9sz/n7m9jxwr70AbaYTBo fY/heRXdZvteZPy96Qf6IfqCz/UXKFX/7YfYfC17FoB5KkCpOpDOhKQi2EmeS8jUg9KI VQwg== X-Gm-Message-State: APjAAAXAWti8fL1fKQKWrDsjOyu+mdlGSOUIaOf0umuxDjmk1K9PeHMe tLTPsPR8IlqWfgsRStoeZNk= X-Received: by 2002:a17:90a:6283:: with SMTP id d3mr11196594pjj.27.1571401794127; Fri, 18 Oct 2019 05:29:54 -0700 (PDT) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id v68sm6390357pfv.47.2019.10.18.05.29.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2019 05:29:50 -0700 (PDT) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id B9F394042C; Fri, 18 Oct 2019 12:29:49 +0000 (UTC) Date: Fri, 18 Oct 2019 12:29:49 +0000 From: Luis Chamberlain To: Brendan Higgins , Matthias Maennich Cc: shuah@kernel.org, john.johansen@canonical.com, jmorris@namei.org, serge@hallyn.com, keescook@chromium.org, alan.maguire@oracle.com, yzaikin@google.com, davidgow@google.com, tytso@mit.edu, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, kunit-dev@googlegroups.com, linux-kselftest@vger.kernel.org, Mike Salvatore Subject: Re: [PATCH linux-kselftest/test v1] apparmor: add AppArmor KUnit tests for policy unpack Message-ID: <20191018122949.GD11244@42.do-not-panic.com> References: <20191018001816.94460-1-brendanhiggins@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191018001816.94460-1-brendanhiggins@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 17, 2019 at 05:18:16PM -0700, Brendan Higgins wrote: > From: Mike Salvatore > > In order to write the tests against the policy unpacking code, some > static functions needed to be exposed for testing purposes. One of the > goals of this patch is to establish a pattern for which testing these > kinds of functions should be done in the future. And you'd run into the same situation expressed elsewhere with kunit of an issue of the kunit test as built-in working but if built as a module then it would not work, given the lack of exports. Symbols namespaces should resolve this [0], and we'd be careful where a driver imports this namespace. [0] https://lwn.net/Articles/798254/ Luis