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
{{ message }}
Repository navigation
[ENHANCEMENT] Update all states that currently use file.* to set SELinux labels #653
Is your feature request related to a problem? Please describe.
This project has been running since September of 2014. The first state-handler that included setting of SELinux labels was October 28, 2014 (ash-linux/el6/STIGbyID/cat2/V38667.sls). At that point in time, the method selected for setting SELinux labes was to use the file.managed state's selinux parameter (available since Saltstack 3000).
Since SaltStack 2017.7.0, SaltStack added better, dedicated SELinux states for updating SELinux labels on filesystem objects. This project never switched over to that method. Recent compatibility issues with the file.managed state's selinux parameter-handler have been uncovered when used for AL2023 and RHEL (and derived-distros) 10. PR #652 was the first address such compatibility issues with the new capability.
Describe the solution you'd like
Retrofit the capabilities/methods used for PR #652 into handlers still using the file.managed state's selinux parameter. As of the opening of this ticket, that should cover the files:
Using restorecon -F, via SaltStack's cmd.run module (see branch-history for PR #651). This would have been a good method prior to SaltStack 2017.7.0, however "native" modules are generally preferred over cmd.run types of solutions.
Activity
ferricoxide commentedon Oct 16, 2026
Working resolution… See fork/branch: ENHANCEMENT/Issue_653.
ferricoxide commentedon Oct 19, 2026
Closed by #654