Skip to content
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

Merged
merged 1 commit into from
Nov 26, 2020

Conversation

evgeni
Copy link
Member

@evgeni evgeni commented Nov 26, 2020

a socket is not a regular file, and thus this rule did not match on
(at least) EL8.

a socket is not a regular file, and thus this rule did not match on
(at least) EL8.
@evgeni
Copy link
Member Author

evgeni commented Nov 26, 2020

(untested, I am lazy)

@evgeni
Copy link
Member Author

evgeni commented Nov 26, 2020

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)
Copy link
Member Author

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…

Copy link
Member

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.

Copy link
Member

@lzap lzap left a 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)
Copy link
Member

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.

@lzap lzap merged commit a74b248 into theforeman:develop Nov 26, 2020
@evgeni evgeni deleted the socket-match branch November 26, 2020 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants