Skip to content

Add AmbientCapabilities to Systemd::Unit::Service #329

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

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Apr 14, 2023

No description provided.

@ekohl ekohl force-pushed the add-ambient-capabilities branch 2 times, most recently from 049e633 to d5d3464 Compare April 18, 2023 12:11
@ekohl ekohl marked this pull request as ready for review April 18, 2023 12:11
@ekohl ekohl force-pushed the add-ambient-capabilities branch from d5d3464 to 3e58e9b Compare April 18, 2023 12:15
@ekohl ekohl added the enhancement New feature or request label Apr 18, 2023
@@ -4,6 +4,7 @@
#
type Systemd::Unit::Service = Struct[
{
Optional['AmbientCapabilities'] => Variant[Pattern[/^CAP_[A-Z_]+$/],Array[Pattern[/^CAP_[A-Z_]+$/],1]],
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 doesn't support multiple capabilities separated by whitespace. I thought about that but it became complicated in the template. I don't need it now and if needed you can specify it multiple times. Quoting man systemd.exec:

This option may appear more than once in which case the ambient capability sets are merged.

@ekohl ekohl merged commit 87ac82a into voxpupuli:master Apr 18, 2023
@ekohl ekohl deleted the add-ambient-capabilities branch April 18, 2023 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants