3c61186c9d
Created wrapper scripts around semanage fcontext and restorecon commands. For a lay person, these scripts are easier to understand. We also check if SELinux is available within the script, so it will reduce the amount of code currently in the SELinux orc scripts when they are refactored. Change-Id: I7fdd7d52e255a50d4900f35aba4b3390c68e6651
657 B
657 B
An element containing SELinux scripts
- bin/add-selinux-file-context
Adds a file context type to a file or a directory. It is a wrapper script around semanage fcontext -a -t .
- bin/add-selinux-path-substitution
Adds a path substitution from a source to a target path. Can be used to indicate the SELinux rules that normally apply to the packaged version of nova at /usr/bin/nova (source path) should also be applied to the source version at /opt/stack/venvs/nova/bin/nova (target path).
- bin/restore-selinux-file-context
Recursively restores the file context on a file or directory. It is a wrapper script around restorecon -Rv .