-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
order of file contexts #121
Comments
I could make a pullrequest creating the following Exec in init.pp (is this the place?) and notify it from within the fcontext definition.
|
reading File Contexts Sort Ordering (FedoraProject) I would suspect that if you add them as regex please be more specific what distribution and version you are using. please provide a sample manifest with the 2 fcontext resources. please describe who and what (puppet, manual, a daemon, ...) creates the directories with wrong selinux fcontext. |
there is an Redhat Bugzilla which seems to be related: https://bugzilla.redhat.com/show_bug.cgi?id=803846 |
and another bugzilla with no solution: https://bugzilla.redhat.com/show_bug.cgi?id=678577 IMHO the "real" workaround for this problem would be to use a module with filecontext included. |
@Heidistein do you still think this module should fix the selinux bug/problem? I think the selinux module way is the only real solution here. |
the behaviour is now documented in the README.md. Also no follow up comment from author within the last 11 days. |
Update the README.md to include hints about known problems and limitations to consider when working with SELinux and this module. Related: voxpupuliGH-121, voxpupuliGH-164, voxpupuliGH-165
Hi,
I am puzzling with an issue that the order of file-context entries matters, where the last has precedence.
Because environments are constant in flux it happened that contexts are added in the 'wrong' order. For example, I added an fcontext for /data/log/mysql before /data/log. The effect is that the /data/log/mysql directory is getting the wrong context.
If I manually change the ordering, the context is applied correctly.
The puzzle is how do I puppet-fix this correct. Is am thinking in the direction of an Exec[] which (reverse) sorts the file /etc/selinux/targeted/contexts/files/file_contexts.local. However, this feels dirty and wrong. Any sugestions?
The text was updated successfully, but these errors were encountered: