Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Polkit and KDE headache
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
leo.the_zoo
Apprentice
Apprentice


Joined: 04 Jul 2005
Posts: 160
Location: Poland

PostPosted: Sat May 09, 2020 10:38 pm    Post subject: [SOLVED] Polkit and KDE headache Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum