]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
apparmor: add .kunitconfig
authorRyota Sakamoto <sakamo.ryota@gmail.com>
Sun, 25 Jan 2026 10:05:48 +0000 (19:05 +0900)
committerJohn Johansen <john.johansen@canonical.com>
Sun, 1 Feb 2026 20:01:19 +0000 (12:01 -0800)
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>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/.kunitconfig [new file with mode: 0644]

diff --git a/security/apparmor/.kunitconfig b/security/apparmor/.kunitconfig
new file mode 100644 (file)
index 0000000..aa842a0
--- /dev/null
@@ -0,0 +1,5 @@
+CONFIG_KUNIT=y
+CONFIG_NET=y
+CONFIG_SECURITY=y
+CONFIG_SECURITY_APPARMOR=y
+CONFIG_SECURITY_APPARMOR_KUNIT_TEST=y