2
1

Config.in 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. menuconfig BR2_PACKAGE_SELINUX_PYTHON
  2. bool "selinux-python"
  3. select BR2_PACKAGE_PYTHON3 if !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. 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_USE_WCHAR # sepolgen
  17. depends on BR2_USE_MMU # sepolgen
  18. depends on BR2_TOOLCHAIN_HAS_THREADS # sepolgen, checkpolicy
  19. depends on !BR2_STATIC_LIBS # sepolgen
  20. depends on BR2_TOOLCHAIN_USES_GLIBC # checkpolicy
  21. depends on !BR2_arc # checkpolicy
  22. select BR2_PACKAGE_CHECKPOLICY
  23. select BR2_PACKAGE_SELINUX_PYTHON_SEPOLGEN
  24. select BR2_PACKAGE_SEMODULE_UTILS
  25. help
  26. This module installs two programs:
  27. audit2allow - Generate SELinux policy allow/dontaudit rules
  28. from logs of denied operations.
  29. audit2why - translates SELinux audit messages into a
  30. description of why the access was denied (audit2allow -w)
  31. comment "audit2allow needs a glibc toolchain w/ wchar, threads, dynamic library"
  32. depends on BR2_USE_MMU
  33. depends on !BR2_arc
  34. depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
  35. BR2_STATIC_LIBS
  36. config BR2_PACKAGE_SELINUX_PYTHON_SEPOLGEN
  37. bool "sepolgen"
  38. depends on BR2_USE_WCHAR
  39. depends on BR2_USE_MMU
  40. depends on BR2_TOOLCHAIN_HAS_THREADS
  41. depends on !BR2_STATIC_LIBS
  42. select BR2_PACKAGE_SEMODULE_UTILS
  43. help
  44. This package contains a Python module that allows you to
  45. generate an initial SELinux policy module template.
  46. comment "sepolgen needs a toolchain w/ wchar, threads, dynamic library"
  47. depends on BR2_USE_MMU
  48. depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
  49. BR2_STATIC_LIBS
  50. endif
  51. comment "selinux-python packages needs a toolchain w/ wchar, threads, dynamic library"
  52. depends on BR2_USE_MMU
  53. depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
  54. BR2_STATIC_LIBS