config: prepare for choice of SELinux policy
authorDaniel Golle <daniel@makrotopia.org>
Tue, 29 Sep 2020 01:47:25 +0000 (02:47 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 29 Sep 2020 01:50:00 +0000 (02:50 +0100)
Only 'targeted' from refpolicy is supported for now.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
config/Config-build.in

index fc94f4d45e0c4cd309555a8231cf93ec9277f2e2..224247007988feb98b282f454f6ee03bd8bbb96e 100644 (file)
@@ -335,7 +335,18 @@ menu "Global build settings"
                select KERNEL_F2FS_FS_SECURITY
                select KERNEL_UBIFS_FS_SECURITY
                select KERNEL_JFFS2_FS_SECURITY
-               select PACKAGE_refpolicy
                help
                  This option enables the usage of SELinux labels
+
+       choice
+               prompt "default SELinux type"
+               depends on TARGET_ROOTFS_SECURITY_LABELS
+               default SELINUXTYPE_targeted
+               help
+                 Choose SELinux policy to be used for build.
+               config SELINUXTYPE_targeted
+                       bool "targeted"
+                       select PACKAGE_refpolicy
+       endchoice
+
 endmenu