[FEATURE REQUEST] selinux.install_semod / selinux.module_install should accept type enforcement files and policy module files in addition to policy package files #67328
ggiesen
started this conversation in
Feature Requests
Replies: 2 comments 1 reply
-
|
@ggiesen Thanks for the report. The best path forward for this feature request would be for the selinux module to be moved out to a salt extension and this feature added to that extension. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
We ended up writing a macro to wrap this sequence into something reusable. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is your feature request related to a problem? Please describe.
salt.states.selinux.module_install (state) and selinux.install_semod (execution module) currently accept only policy packages (.pp) files. However, since these are binary, non-human-readable files, they aren't useful for version-controlling. If the user wants to be able to version control the text, human-readable files (type enforcement - .te) files, it's then left up to the user to compile them and install them.
Describe the solution you'd like
Ideally,
salt.states.selinux.module_installandsalt.states.selinux.module_installcould optionally be fed a type enforcement file (.te) or a policy module file (.mod) and the module would be automatically compiled/packaged before being installed. I'd imagine the simplest state for this would look like:And example of execution module usage:
Describe alternatives you've considered
The alternative is manually copy the files to the minion, and manually compile the states before using the
selinux.module_installstate to install it:Or wrapping the above in a shell script. But either way you end up with a minimum of 2 states to do what should really be accomplished in one.
Beta Was this translation helpful? Give feedback.
All reactions