leo.the_zoo Apprentice
Joined: 04 Jul 2005 Posts: 160 Location: Poland
|
Posted: Sat May 09, 2020 10:38 pm Post subject: [SOLVED] Polkit and KDE headache |
|
|
Recently, I have lost capability to mount drives from KDE environment.
For quite some time already, I am also unable to control Network Manager using Plasma widgets which happened after a polkit update.
In order to bring back filesystem mounting permissions, I generated the following rule file:
Code: |
# cat /etc/polkit-1/rules.d/02-org.freedesktop.udisks2.rules
// Let users in plugdev group mount drives
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.filesystem-mount" &&
subject.isInGroup("plugdev") && subject.active) {
return polkit.Result.YES;
}
}); |
When I try to mount a usb drive, I get:
Code: |
# POLKIT_DEBUG=1 G_MESSAGES_DEBUG=all /usr/lib/polkit-1/polkitd -r
Successfully changed to user polkitd
(polkitd:15872): GLib-GIO-DEBUG: 00:29:05.941: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs?
00:29:05.961: Loading rules from directory /etc/polkit-1/rules.d
00:29:05.961: Loading rules from directory /usr/share/polkit-1/rules.d
00:29:05.962: Finished loading, compiling and executing 6 rules
Entering main event loop
Connected to the system bus
00:29:05.962: Acquired the name org.freedesktop.PolicyKit1 on the system bus
** (polkitd:15872): DEBUG: 00:29:12.440: system-bus-name::1.11 is inquiring whether system-bus-name::1.60 is authorized for org.freedesktop.udisks2.filesystem-mount
** (polkitd:15872): DEBUG: 00:29:12.441: user of caller is unix-user:root
** (polkitd:15872): DEBUG: 00:29:12.442: user of subject is unix-user:leo
** (polkitd:15872): DEBUG: 00:29:12.442: checking whether system-bus-name::1.60 is authorized for org.freedesktop.udisks2.filesystem-mount
** (polkitd:15872): DEBUG: 00:29:12.451: (nil)
** (polkitd:15872): DEBUG: 00:29:12.453: challenge (implicit_authorization = auth_admin)
** (polkitd:15872): DEBUG: 00:29:12.453:
|
User leo is in a plugdev group. Everything should be fine, but is not.
Please help me understand what I am doing wrong and fix the issue.
EDIT: In the end, the whole issue turned out to be caused by a forgotten hidepid mount option for /proc system. |
|