nixos/polkit/network: disallow managing wg-quick services to system accoutns
This commit is contained in:
parent
6209a92212
commit
cce35f8934
1 changed files with 1 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
||||||
// Allow to start and stop wireguard client services
|
// Allow to start and stop wireguard client services
|
||||||
if (
|
if (
|
||||||
action.id == "org.freedesktop.systemd1.manage-units" &&
|
action.id == "org.freedesktop.systemd1.manage-units" &&
|
||||||
|
subject.isInGroup("users") &&
|
||||||
action.lookup("unit") &&
|
action.lookup("unit") &&
|
||||||
action.lookup("unit").match(/^wg-quick-.*\.service$/)
|
action.lookup("unit").match(/^wg-quick-.*\.service$/)
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue