removed elogind bloatware
This commit is contained in:
parent
cd7a9d846e
commit
6b1a92e419
5 changed files with 39 additions and 16 deletions
17
config-files/polkit/00-polkit.rules
Normal file
17
config-files/polkit/00-polkit.rules
Normal file
|
@ -0,0 +1,17 @@
|
|||
polkit.addRule(function(action, subject)
|
||||
{
|
||||
if (action.id == "org.freedesktop.policykit.exec" && action.lookup("program") == "/bin/shutdown" && subject.isInGroup("wheel"))
|
||||
return polkit.Result.YES;
|
||||
});
|
||||
|
||||
polkit.addRule(function(action, subject)
|
||||
{
|
||||
if (action.id == "org.freedesktop.policykit.exec" && action.lookup("program") == "/bin/zzz" && subject.isInGroup("wheel"))
|
||||
return polkit.Result.YES;
|
||||
});
|
||||
|
||||
polkit.addRule(function(action, subject)
|
||||
{
|
||||
if (action.id.startsWith("org.freedesktop.udisks2.") && subject.isInGroup("wheel"))
|
||||
return polkit.Result.YES;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue