|
@@ -28,6 +28,41 @@ config BR2_PACKAGE_REFPOLICY
|
|
|
|
|
|
if BR2_PACKAGE_REFPOLICY
|
|
|
|
|
|
+choice
|
|
|
+ prompt "Refpolicy version"
|
|
|
+ default BR2_PACKAGE_REFPOLICY_UPSTREAM_VERSION
|
|
|
+
|
|
|
+config BR2_PACKAGE_REFPOLICY_UPSTREAM_VERSION
|
|
|
+ bool "Upstream version"
|
|
|
+ help
|
|
|
+ Use the refpolicy as provided by Buildroot.
|
|
|
+
|
|
|
+config BR2_PACKAGE_REFPOLICY_CUSTOM_GIT
|
|
|
+ bool "Custom git repository"
|
|
|
+ help
|
|
|
+ Allows to get the refpolicy from a custom git repository.
|
|
|
+
|
|
|
+ The custom refpolicy must define the full policy explicitly,
|
|
|
+ and must be a fork of the original refpolicy, to have the
|
|
|
+ same build system. When this is selected, only the custom
|
|
|
+ policy definition are taken into account and all the modules
|
|
|
+ of the policy are built into the binary policy.
|
|
|
+
|
|
|
+endchoice
|
|
|
+
|
|
|
+if BR2_PACKAGE_REFPOLICY_CUSTOM_GIT
|
|
|
+
|
|
|
+config BR2_PACKAGE_REFPOLICY_CUSTOM_REPO_URL
|
|
|
+ string "URL of custom repository"
|
|
|
+
|
|
|
+config BR2_PACKAGE_REFPOLICY_CUSTOM_REPO_VERSION
|
|
|
+ string "Custom repository version"
|
|
|
+ help
|
|
|
+ Revision to use in the typical format used by Git.
|
|
|
+ E.g. a sha id, tag, branch...
|
|
|
+
|
|
|
+endif
|
|
|
+
|
|
|
choice
|
|
|
prompt "SELinux default state"
|
|
|
default BR2_PACKAGE_REFPOLICY_POLICY_STATE_PERMISSIVE
|
|
@@ -54,6 +89,8 @@ config BR2_PACKAGE_REFPOLICY_POLICY_STATE
|
|
|
default "enforcing" if BR2_PACKAGE_REFPOLICY_POLICY_STATE_ENFORCING
|
|
|
default "disabled" if BR2_PACKAGE_REFPOLICY_POLICY_STATE_DISABLED
|
|
|
|
|
|
+if BR2_PACKAGE_REFPOLICY_UPSTREAM_VERSION
|
|
|
+
|
|
|
config BR2_REFPOLICY_EXTRA_MODULES_DIRS
|
|
|
string "Extra modules directories"
|
|
|
help
|
|
@@ -74,5 +111,7 @@ config BR2_REFPOLICY_EXTRA_MODULES
|
|
|
|
|
|
endif
|
|
|
|
|
|
+endif
|
|
|
+
|
|
|
comment "refpolicy needs a toolchain w/ threads"
|
|
|
depends on !BR2_TOOLCHAIN_HAS_THREADS
|