You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When peadm::update_pe_conf is called from a plan, it sets improper permissions
first it makes root:root as the owner of the file, second it modifies SELinux context to unconfined_u:object_r:user_tmp_t
Expected Behavior
permissions/context should be as follow:
-rw-------. 1 pe-puppet pe-puppet system_u:object_r:puppet_etc_t:s0 2390 Jan 28 14:04 /etc/puppetlabs/enterprise/conf.d/pe.conf
I suspect, that in the background write_file function moves over a temporary file instead.
It should copy file in place, this way both permissions and SELinux context would be preserved,
Describe the Bug
When peadm::update_pe_conf is called from a plan, it sets improper permissions
first it makes root:root as the owner of the file, second it modifies SELinux context to unconfined_u:object_r:user_tmp_t
Expected Behavior
permissions/context should be as follow:
-rw-------. 1 pe-puppet pe-puppet system_u:object_r:puppet_etc_t:s0 2390 Jan 28 14:04 /etc/puppetlabs/enterprise/conf.d/pe.conf
Steps to Reproduce
execute a plan, for example
Environment
The text was updated successfully, but these errors were encountered: