selinux/python/semanage
Vit Mojzis 48602370ac python: Harden tools against "rogue" modules
Python scripts present in "/usr/sbin" override regular modules.
Make sure /usr/sbin is not present in PYTHONPATH.

Fixes:
  #cat > /usr/sbin/audit.py <<EOF
  import sys
  print("BAD GUY!", file=sys.stderr)
  sys.exit(1)
  EOF
  #semanage boolean -l
  BAD GUY!

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
2022-11-09 07:53:27 -05:00
..
ru Update man pages translation by Olesya Gerasimenko 2019-05-28 07:50:34 -04:00
Makefile python: Remove dependency on the Python module distutils 2022-11-09 07:51:36 -05:00
semanage python: Harden tools against "rogue" modules 2022-11-09 07:53:27 -05:00
semanage-bash-completion.sh semanage bash completion: handle semanage module 2020-06-09 15:44:07 -04:00
semanage-boolean.8 semanage/semanage-boolean.8: Fix a minor typo 2019-04-30 17:49:00 +02:00
semanage-dontaudit.8
semanage-export.8
semanage-fcontext.8 semanage-fcontext.8: Drop extra )s after FILE_SPEC 2022-03-03 12:13:47 -05:00
semanage-ibendport.8
semanage-ibpkey.8
semanage-import.8
semanage-interface.8
semanage-login.8
semanage-module.8
semanage-node.8 semanage-node.8: describe netmask 2020-06-09 15:44:14 -04:00
semanage-permissive.8 python/semanage: Improve handling of "permissive" statements 2019-10-01 14:03:55 -04:00
semanage-port.8 python/semanage: Document DCCP and SCTP support 2019-10-23 10:24:38 -04:00
semanage-user.8
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: Do not query the local database if the fcontext is non-local 2022-10-24 08:26:28 -04:00
test-semanage.py semanage/test-semanage.py: Return non-zero value when some of unittest tests fail 2020-05-13 11:11:23 +02:00