From f340a4be329d25a4bfa66a7c6cfd4d0c15d97036 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Wed, 31 Mar 2021 14:24:54 -0500 Subject: [PATCH] include org.fedoraproject.FirewallD1.desktop.rules.choice content --- ...doraproject.FirewallD1.desktop.rules.choice | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 org.fedoraproject.FirewallD1.desktop.rules.choice diff --git a/org.fedoraproject.FirewallD1.desktop.rules.choice b/org.fedoraproject.FirewallD1.desktop.rules.choice new file mode 100644 index 0000000..883c600 --- /dev/null +++ b/org.fedoraproject.FirewallD1.desktop.rules.choice @@ -0,0 +1,18 @@ +// firewalld authorizations/policy for the wheel group. +// +// DO NOT EDIT THIS FILE, it will be overwritten on update. +// +// Allow users in the wheel group to use firewalld without being +// interrupted by a password dialog + +polkit.addRule(function(action, subject) { + if ((action.id == "org.fedoraproject.FirewallD1.config" || + action.id == "org.fedoraproject.FirewallD1.direct" || + action.id == "org.fedoraproject.FirewallD1.ipset" || + action.id == "org.fedoraproject.FirewallD1.policy" || + action.id == "org.fedoraproject.FirewallD1.zone") && + subject.active == true && subject.local == true && + subject.isInGroup("wheel")) { + return polkit.Result.YES; + } +});