/selinux-policy-macros

Policy macros used for shipping custom selinux policies. These macros are shipped with selinux-policy rpm package in Fedora

Primary LanguageShellGNU General Public License v3.0GPL-3.0

Tests

$ sudo dnf install beakerlib
$ sudo ./runtest.sh

DONE

  • macros.selinux-policy: store current value to %{_file_custom_defined_booleans}

  • macros.selinux-policy: use value from %{_file_custom_defined_booleans} and set it via semanage (import|boolean)

  • prepare a basic testsuite with these situations

    • install/uninstall package

      • with a boolean not modified before

      • with a boolean modified before

      • with a boolean modified before but twice - to a default value

    • install/uninstall multiple packages

      • with a boolean not modified before

      • with a boolean modified before

      • with a boolean modified before but twice - to a default value