include org.fedoraproject.FirewallD1.desktop.rules.choice content
This commit is contained in:
parent
a4cd21f754
commit
f340a4be32
18
org.fedoraproject.FirewallD1.desktop.rules.choice
Normal file
18
org.fedoraproject.FirewallD1.desktop.rules.choice
Normal file
@ -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;
|
||||
}
|
||||
});
|
Loading…
Reference in New Issue
Block a user