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

[OPS-1161] Add withHardeningProfile helper #158

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

Sereja313
Copy link
Member

Problem: We want to harden our systemd services by using previously defined profiles, so we need a way to easily apply them to our systemd service configurations.

Solution: Add withHardeningProfile helper, remove DeviceAllow from profiles, because it is used incorrectly (systemd complains and skips this option), and the semantics of this use is already covered by PrivateDevices.

Problem: We want to harden our systemd services by using previously
defined profiles, so we need a way to easily apply them to our systemd
service configurations.

Solution: Add withHardeningProfile helper, remove DeviceAllow from
profiles, because it is used incorrectly (systemd complains and skips
this option), and the semantics of this use is already covered by PrivateDevices.
@Sereja313 Sereja313 merged commit b6bbeda into master Mar 13, 2024
1 check passed
@delete-merged-branch delete-merged-branch bot deleted the sereja/OPS-1161-add-withHardeningProfile branch March 13, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants