security: enable full systemd-status for group 'proc'

Previously, systemd-status was broken for all users except root.

Use a 'default' deny policy, which is overridden for group 'proc'.

Add operator to group 'proc'.

Also, remove redundant XML boilerplate.
This commit is contained in:
Erik Arvstedt 2020-08-20 13:11:08 +02:00
parent 96ea2e671c
commit 588a0b2405
No known key found for this signature in database
GPG key ID: 33312B944DD97846
3 changed files with 25 additions and 16 deletions

View file

@ -227,6 +227,7 @@ in {
isNormalUser = true;
extraGroups = [
"systemd-journal"
"proc" # Enable full /proc access and systemd-status
cfg.bitcoind.group
]
++ (optionals cfg.clightning.enable [ "clightning" ])