-
Notifications
You must be signed in to change notification settings - Fork 521
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
fixes for release package #1889
Conversation
Signed-off-by: Ben Cressey <bcressey@amazon.com>
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.
🕹️
In order for `setfiles` to work, the SELinux file contexts must have been copied into `/etc`. The dependency is specified with "Wants" rather than "Requires" to avoid restarting the service if selinux-policy-files is restarted for any reason. Subsequent runs would fail and put the system in a bad state until the next reboot. Add RefuseManualStop / RefuseManualStart to both services to indicate the risk during interactive use by an administrator. Signed-off-by: Ben Cressey <bcressey@amazon.com>
1222cfc
to
f793284
Compare
The above change switches to I've also added |
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.
🔩
Issue number:
N/A
Description of changes:
Make
prepare-local.service
depend onselinux-policy-files.service
, since otherwise thesetfiles
command can fail if the file contexts haven't been copied yet. I've only seen this on a system that was failing to boot for other reasons, but in theory it could affect the most recent release.Simplify the default target symlink, which was flagged by the
symlinks
tool while troubleshooting broken symlinks for the systemd upgrade.Testing done:
Verified that the new dependency was used for
prepare-local.service
.Verified that the simplified symlink was correct for
default.target
.Verified that the two services can't be manually restarted:
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.