xref: /OK3568_Linux_fs/buildroot/package/selinux-python/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_SELINUX_PYTHON
2	bool "selinux-python"
3	depends on !BR2_PACKAGE_PYTHON
4	depends on BR2_USE_MMU
5	depends on BR2_USE_WCHAR
6	depends on BR2_TOOLCHAIN_HAS_THREADS
7	depends on !BR2_STATIC_LIBS
8	select BR2_PACKAGE_PYTHON3
9	help
10	  A set of SELinux tools written in python that help with
11	  managing a system with SELinux enabled. If no packages are
12	  selected nothing will actually be built.
13
14	  https://github.com/SELinuxProject/selinux/wiki
15
16if BR2_PACKAGE_SELINUX_PYTHON
17
18config BR2_PACKAGE_SELINUX_PYTHON_AUDIT2ALLOW
19	bool "audit2allow"
20	select BR2_PACKAGE_CHECKPOLICY
21	select BR2_PACKAGE_SELINUX_PYTHON_SEPOLGEN
22	select BR2_PACKAGE_SEMODULE_UTILS
23	help
24	  This module installs two programs:
25
26	  audit2allow - Generate SELinux policy allow/dontaudit rules
27	  from logs of denied operations.
28
29	  audit2why - translates SELinux audit messages into a
30	  description of why the access was denied (audit2allow -w)
31
32config BR2_PACKAGE_SELINUX_PYTHON_SEPOLGEN
33	bool "sepolgen"
34	select BR2_PACKAGE_SEMODULE_UTILS
35	help
36	  This package contains a Python module that allows you to
37	  generate an initial SELinux policy module template.
38
39endif
40
41comment "selinux-python needs python3"
42	depends on BR2_USE_MMU
43	depends on BR2_PACKAGE_PYTHON
44
45comment "selinux-python packages needs a toolchain w/ wchar, threads, dynamic library"
46	depends on BR2_USE_MMU
47	depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
48		BR2_STATIC_LIBS
49