* [PATCH] apparmor: add .kunitconfig
@ 2026-01-25 10:05 Ryota Sakamoto
2026-02-05 7:41 ` John Johansen
0 siblings, 1 reply; 2+ messages in thread
From: Ryota Sakamoto @ 2026-01-25 10:05 UTC (permalink / raw)
To: John Johansen, Paul Moore, James Morris, Serge E. Hallyn
Cc: linux-kernel, apparmor, linux-security-module, Ryota Sakamoto
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@gmail.com>
---
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,
--
Ryota Sakamoto <sakamo.ryota@gmail.com>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] apparmor: add .kunitconfig
2026-01-25 10:05 [PATCH] apparmor: add .kunitconfig Ryota Sakamoto
@ 2026-02-05 7:41 ` John Johansen
0 siblings, 0 replies; 2+ messages in thread
From: John Johansen @ 2026-02-05 7:41 UTC (permalink / raw)
To: Ryota Sakamoto, Paul Moore, James Morris, Serge E. Hallyn
Cc: linux-kernel, apparmor, linux-security-module
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@gmail.com>
Acked-by: John Johansen <john.johansen@canonical.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,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-02-05 7:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-25 10:05 [PATCH] apparmor: add .kunitconfig Ryota Sakamoto
2026-02-05 7:41 ` John Johansen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox