Config.in 1.6 KB

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