/usr/lib/python3.9/site-packages/sepolicy/help
SELinux can either setup labeling directory using the Application/files screen, or you can setup file equivalence. File Equivalence allows an administrator to label entire directory trees as the same way as the Equivalence directory tree. Use Case 1: An administrator want to store his Apache root content in a location other then /var/www like /srv/www. He could define an equivalence between /srv/www and /var/www. libselinux reads the equivalence rules and does the substitution when ever the matchpathcon function is called. Tools like restorecon/rpm/udev and others will all follow the substitution. Using the example above when matchpathcon is handed /srv/www/cgi-bin/myscript.cgi, it substitutes /var/www for /svr/www and looks up the context of /var/www/cgi-bin/myscript.cgi. In the command line you could execute. # semanage fcontext -a -e /var/www /srv/www Another common case where you might want to use file equivalence, is if you put your users home directories in a location other then /home. If you setup an equivalence between /home and /export/home # matchpathcon /export/home/dwalsh/.ssh /export/home/dwalsh/.ssh unconfined_u:object_r:home_ssh_t:s0
.
Edit
..
Edit
__init__.py
Edit
__pycache__
Edit
booleans.png
Edit
booleans.txt
Edit
booleans_more.png
Edit
booleans_more.txt
Edit
booleans_more_show.png
Edit
booleans_more_show.txt
Edit
booleans_toggled.png
Edit
booleans_toggled.txt
Edit
file_equiv.png
Edit
file_equiv.txt
Edit
files_apps.png
Edit
files_apps.txt
Edit
files_exec.png
Edit
files_exec.txt
Edit
files_write.png
Edit
files_write.txt
Edit
lockdown.png
Edit
lockdown.txt
Edit
lockdown_permissive.png
Edit
lockdown_permissive.txt
Edit
lockdown_ptrace.png
Edit
lockdown_ptrace.txt
Edit
lockdown_unconfined.png
Edit
lockdown_unconfined.txt
Edit
login.png
Edit
login.txt
Edit
login_default.png
Edit
login_default.txt
Edit
ports_inbound.png
Edit
ports_inbound.txt
Edit
ports_outbound.png
Edit
ports_outbound.txt
Edit
start.png
Edit
start.txt
Edit
system.png
Edit
system.txt
Edit
system_boot_mode.png
Edit
system_boot_mode.txt
Edit
system_current_mode.png
Edit
system_current_mode.txt
Edit
system_export.png
Edit
system_export.txt
Edit
system_policy_type.png
Edit
system_policy_type.txt
Edit
system_relabel.png
Edit
system_relabel.txt
Edit
transition_file.png
Edit
transition_file.txt
Edit
transition_from.png
Edit
transition_from.txt
Edit
transition_from_boolean.png
Edit
transition_from_boolean.txt
Edit
transition_from_boolean_1.png
Edit
transition_from_boolean_1.txt
Edit
transition_from_boolean_2.png
Edit
transition_from_boolean_2.txt
Edit
transition_to.png
Edit
transition_to.txt
Edit
users.png
Edit
users.txt
Edit