Initial commit
This commit is contained in:
commit
968d09e362
88 changed files with 2323 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
// Show a root password prompt for these actions:
|
||||
// - change network settings
|
||||
// - hibernate
|
||||
// - change package download proxy
|
||||
// - mount removable storage, perform other disk operations
|
||||
|
||||
polkit.addRule(function (action, subject) {
|
||||
if (
|
||||
action.id.indexOf("org.freedesktop.ModemManager1.") === 0 ||
|
||||
action.id.indexOf("org.freedesktop.NetworkManager.") === 0 ||
|
||||
action.id === "org.freedesktop.login1.hibernate" ||
|
||||
action.id === "org.freedesktop.packagekit.system-network-proxy-configure" ||
|
||||
action.id.indexOf("org.freedesktop.udisks2.") === 0
|
||||
) {
|
||||
return polkit.Result.AUTH_ADMIN;
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue