-
Notifications
You must be signed in to change notification settings - Fork 158
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
tests: check for avc denials around daemon-reload #1702
base: testing-devel
Are you sure you want to change the base?
Conversation
Maybe instead of doing this we should pursue coreos/coreos-assembler#2067 |
There's good discussion on that PR about whether it makes sense to have it run on every test since some tests may purposely invoke errors. I'm inclined to keep this for now unless there are objections. |
I think that's fair especially since that PR hasn't merged. |
Note that this test essentially becomes a catchall for any SELinux issue that happens by default on boot. I think that's fine, but the test name and description are probably more narrowly focused that they should be because I suspect it will fail for other reasons a lot more than it will fail for the reason this test was written. Can you try running this agains a local build of |
Great point! My intention was to make sure there were no denials before the test and that |
I strongly agree with this.
Yeah, but I think what we can do on the coreos-assembler side is an an opt-in that lets us ignore errors. Perhaps by logging a special journal message. There is actually another approach - we could ship a systemd unit that trips into failure mode when a SELinux denial is detected. The key advantage of this is: it means our existing failure detection for systemd unit Just Works - including things like the console login. The OpenShift MCO uses We could actually discuss taking such a unit to some selinux-policy package. I wouldn't object to merging this PR as is but the above has a lot more appeal to me. |
We have the existing test flags mechanism for this. |
xref https://bugzilla.redhat.com/show_bug.cgi?id=1924869