platform_external_selinux/python/semanage
Vit Mojzis 259ab083fa
python/semanage/seobject: Fix listing boolean values
Fix gathering boolean values by fixing always False if condition
(determining whether the values are listed from local store).

Fix listing boolean values by printing the correct values and not
forcing the use of security_get_boolean_active (which causes
crash when listing booleans that are not present in active policy).

Fixes:
    # dnf install selinux-policy-mls
    # cat > mypolicy.cil
    (boolean xyz false)

    # semodule -i mypolicy.cil -s mls

    # semanage boolean -l -S mls
    ...
    irssi_use_full_network         (off  ,  off)  Allow the Irssi IRC Client to connect to any port, and to bind to any unreserved port.
    mozilla_plugin_use_bluejeans   (off  ,  off)  Allow mozilla plugin to use Bluejeans.
    OSError: No such file or directory

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2019-02-06 21:20:12 +01:00
..
ru Add man pages translation by Olesya Gerasimenko 2019-01-28 12:03:57 +01:00
Makefile Allow installing translated man pages 2019-01-28 12:03:57 +01:00
semanage python: use == or != when comparing a variable with a string or a integer 2019-01-31 20:57:23 +01:00
semanage-bash-completion.sh Minor update for bash completion. Bash completion for ports is missing '-' for type. Based on documentation, it should be --type, not -type. 2018-02-26 09:33:19 -05:00
semanage-boolean.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-dontaudit.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-export.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-fcontext.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-ibendport.8 semanage: Fix manpage author for ibpkey and ibendport pages. 2017-05-30 09:40:33 -04:00
semanage-ibpkey.8 semanage: Fix manpage author for ibpkey and ibendport pages. 2017-05-30 09:40:33 -04:00
semanage-import.8 Move policycoreutils/{sepolicy,audit2allow,semanage,scripts/chcat*} and sepolgen to python. 2016-11-16 11:19:50 -05:00
semanage-interface.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-login.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-module.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-node.8 Move policycoreutils/{sepolicy,audit2allow,semanage,scripts/chcat*} and sepolgen to python. 2016-11-16 11:19:50 -05:00
semanage-permissive.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-port.8 policycoreutils, python: Fix bad manpage formatting in "SEE ALSO" 2017-01-12 14:59:31 -05:00
semanage-user.8 semanage: "semanage user" does not use -s, fix documentation 2018-09-09 21:35:44 +02:00
semanage.8 python/semanage: Examples are no longer in the main semanage man page 2019-02-04 22:11:26 +01:00
seobject.py python/semanage/seobject: Fix listing boolean values 2019-02-06 21:20:12 +01:00
test-semanage.py semanage, sepolicy: make tests not fail on systems without SELinux 2017-01-17 16:48:46 -05:00