[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1695a9cc-0d50-48f3-8c44-c84f3424924f@canonical.com>
Date: Wed, 4 Feb 2026 23:41:15 -0800
From: John Johansen <john.johansen@...onical.com>
To: Ryota Sakamoto <sakamo.ryota@...il.com>, Paul Moore
<paul@...l-moore.com>, James Morris <jmorris@...ei.org>,
"Serge E. Hallyn" <serge@...lyn.com>
Cc: linux-kernel@...r.kernel.org, apparmor@...ts.ubuntu.com,
linux-security-module@...r.kernel.org
Subject: Re: [PATCH] apparmor: add .kunitconfig
On 1/25/26 02:05, Ryota Sakamoto wrote:
> Add .kunitconfig file to the AppArmor directory to enable easy execution of
> KUnit tests.
>
> AppArmor tests (CONFIG_SECURITY_APPARMOR_KUNIT_TEST) depend on
> CONFIG_SECURITY_APPARMOR which also depends on CONFIG_SECURITY and
> CONFIG_NET. Without explicitly enabling these configs in the .kunitconfig,
> developers will need to specify config manually.
>
> With the .kunitconfig, developers can run the tests:
> $ ./tools/testing/kunit/kunit.py run --kunitconfig security/apparmor
>
> Signed-off-by: Ryota Sakamoto <sakamo.ryota@...il.com>
Acked-by: John Johansen <john.johansen@...onical.com>
sorry, for the delay I actually pulled this in a while ago, but the initial reply seems
to have gone into the void.
> ---
> security/apparmor/.kunitconfig | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/security/apparmor/.kunitconfig b/security/apparmor/.kunitconfig
> new file mode 100644
> index 0000000000000000000000000000000000000000..aa842a0266e9d33c3333ec2ea180206187b0eb4c
> --- /dev/null
> +++ b/security/apparmor/.kunitconfig
> @@ -0,0 +1,5 @@
> +CONFIG_KUNIT=y
> +CONFIG_NET=y
> +CONFIG_SECURITY=y
> +CONFIG_SECURITY_APPARMOR=y
> +CONFIG_SECURITY_APPARMOR_KUNIT_TEST=y
>
> ---
> base-commit: d91a46d6805af41e7f2286e0fc22d498f45a682b
> change-id: 20260125-add-apparmor-kunitconfig-28aba43c1580
>
> Best regards,
Powered by blists - more mailing lists