Config.in 2.0 KB

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