mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 12:45:47 +01:00
Set CapabiltyBoundingSet again
This commit is contained in:
parent
2f57f73ac9
commit
a8cd1af78d
2 changed files with 3 additions and 2 deletions
|
|
@ -53,6 +53,8 @@ fn systemd_default_options(working_directory: &str) -> BTreeMap<String, Vec<Stri
|
|||
// Various Protections
|
||||
("LockPersonality", vec!["true"]),
|
||||
("NoNewPrivileges", vec!["true"]),
|
||||
("AmbientCapabilities", vec![""]),
|
||||
("CapabilityBoundingSet", vec![""]),
|
||||
// Isolate File
|
||||
("RemoveIPC", vec!["true"]),
|
||||
("RestrictNamespaces", vec!["true"]),
|
||||
|
|
@ -67,7 +69,6 @@ fn systemd_default_options(working_directory: &str) -> BTreeMap<String, Vec<Stri
|
|||
// ("DynamicUser", vec!["true"]),
|
||||
// ("User", vec!["reaction-plugin-test"]),
|
||||
// Too restrictive
|
||||
// ("CapabilityBoundingSet", vec![""]),
|
||||
// ("NoExecPaths", vec!["/"]),
|
||||
// ("RestrictAddressFamilies", vec![""]),
|
||||
]
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
path: './target/debug/reaction-plugin-ipset',
|
||||
check_root: false,
|
||||
systemd_options: {
|
||||
AmbientCapabilities: ['CAP_NET_ADMIN'],
|
||||
CapabilityBoundingSet: ['~CAP_NET_ADMIN', '~CAP_PERFMON'],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue