Browse Source

config: prepare for choice of SELinux policy

Only 'targeted' from refpolicy is supported for now.

Signed-off-by: Daniel Golle <[email protected]>
Daniel Golle 5 years ago
parent
commit
1a22964399
1 changed files with 12 additions and 1 deletions
  1. 12 1
      config/Config-build.in

+ 12 - 1
config/Config-build.in

@@ -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