mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 16:20:05 +01:00
18 lines
724 B
Text
18 lines
724 B
Text
|
|
// NetworkManager authorizations/policy for the @NM_POLKIT_NOAUTH_GROUP@ group.
|
||
|
|
//
|
||
|
|
// DO NOT EDIT THIS FILE, it will be overwritten on update.
|
||
|
|
//
|
||
|
|
// Allow users in the @NM_POLKIT_NOAUTH_GROUP@ group to create system-wide connections without being
|
||
|
|
// prompted for a password if they are in a local console.
|
||
|
|
// This is optional and is only recommended to maintain backwards compatibility
|
||
|
|
// in systems where it was already working in this way. It is discouraged
|
||
|
|
// otherwise.
|
||
|
|
|
||
|
|
polkit.addRule(function(action, subject) {
|
||
|
|
if (action.id == "org.freedesktop.NetworkManager.settings.modify.system" &&
|
||
|
|
subject.isInGroup("@NM_POLKIT_NOAUTH_GROUP@") &&
|
||
|
|
subject.local) {
|
||
|
|
return polkit.Result.YES;
|
||
|
|
}
|
||
|
|
});
|