Debian Codegraph @

data/org.freedesktop.NetworkManager.rules.in

raw
1 // NetworkManager authorizations/policy for the @NM_POLKIT_NOAUTH_GROUP@ group.
2 //
3 // DO NOT EDIT THIS FILE, it will be overwritten on update.
4 //
5 // Allow users in the @NM_POLKIT_NOAUTH_GROUP@ group to create system-wide connections without being
6 // prompted for a password if they are in a local console.
7 // This is optional and is only recommended to maintain backwards compatibility
8 // in systems where it was already working in this way. It is discouraged
9 // otherwise.
10
11 polkit.addRule(function(action, subject) {
12 if (action.id == "org.freedesktop.NetworkManager.settings.modify.system" &&
13 subject.isInGroup("@NM_POLKIT_NOAUTH_GROUP@") &&
14 subject.local) {
15 return polkit.Result.YES;
16 }
17 });