Bug #38227
openselinux relabel after plugin installation necessary
Description
If you install a plugin, e.g. foreman-ansible, restorecon complains about:
Would relabel /var/lib/foreman/public/assets/foreman_ansible from system_u:object_r:usr_t:s0 to system_u:object_r:foreman_lib_t:s0
Would relabel /var/lib/foreman/public/webpack/foreman_ansible from system_u:object_r:usr_t:s0 to system_u:object_r:foreman_lib_t:s0
Well, restorecon -rnv complains about e.g. /var/lib/foreman/public/assets/foreman_ansible/ and /var/lib/foreman/public/webpack/foreman_ansible/ that it would need relabeling.
if you install it after the installation of foreman. this happens for other plugins, too.
I think, the best would be to run the foreman-selinux-relabel script after each package installation - or maybe even better at the end of the foreman-installer.
No data to display