-
Notifications
You must be signed in to change notification settings - Fork 27
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
make /run/foreman.sock match ALL files, not only regular #118
Conversation
a socket is not a regular file, and thus this rule did not match on (at least) EL8.
(untested, I am lazy) |
this is supposed to fix the issues I've been seeing on EL8 in theforeman/puppet-foreman#883 (comment) |
@@ -30,7 +30,7 @@ | |||
/var/log/foreman(/.*)? gen_context(system_u:object_r:foreman_log_t,s0) | |||
|
|||
/var/run/foreman(/.*)? gen_context(system_u:object_r:foreman_var_run_t,s0) | |||
/run/foreman\.sock -- gen_context(system_u:object_r:foreman_var_run_t,s0) | |||
/run/foreman\.sock gen_context(system_u:object_r:foreman_var_run_t,s0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this also could be -s
, but then I don't know why it works on EL7…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does? Weird, anyway this is okay I have never seen -s
in use to be honest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good find, this one had to be tough to spot!
@@ -30,7 +30,7 @@ | |||
/var/log/foreman(/.*)? gen_context(system_u:object_r:foreman_log_t,s0) | |||
|
|||
/var/run/foreman(/.*)? gen_context(system_u:object_r:foreman_var_run_t,s0) | |||
/run/foreman\.sock -- gen_context(system_u:object_r:foreman_var_run_t,s0) | |||
/run/foreman\.sock gen_context(system_u:object_r:foreman_var_run_t,s0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does? Weird, anyway this is okay I have never seen -s
in use to be honest.
a socket is not a regular file, and thus this rule did not match on
(at least) EL8.