Bug 12738 - KDE polkit agent does not remember auth.
Summary: KDE polkit agent does not remember auth.
Status: RESOLVED WORKSFORME
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 4
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-12 05:18 CET by Dimitrios Glentadakis
Modified: 2014-02-28 07:53 CET (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Dimitrios Glentadakis 2014-02-12 05:18:08 CET
After upgrading to Mageia 4, the authentication when i open mcc is not
memorised as before.
I don't have the yellow icon in the system tray and every time i want to
open mcc i have to log as root.

I suppose that it is related to this change:
https://wiki.mageia.org/en/Mageia_4_Release_Notes#Authentication


Reproducible: 

Steps to Reproduce:
Comment 1 Manuel Hiebel 2014-02-12 21:54:30 CET
It should depends of the polkit agent. Which one are you using ?

CC: (none) => mageia

Comment 2 Colin Guthrie 2014-02-13 10:25:35 CET
Yeah, the auth should definitely be kept. We use the auth_admin_keep and auth_user_keep (not the _keep) settings for polkit.

The icon may not be displayed always now (it's up to the polkit agent in question to implement the icon), and also the authorisation should be per-app IIRC, not global, but launching two MCC's here in quick succession certainly only asks me for my password once.
Comment 3 Dimitrios Glentadakis 2014-02-13 12:08:33 CET
I have polkit-agent-kde and every time i open mcc it asks the password
Is there any process that i have to verify if it is running ?
Comment 4 Colin Guthrie 2014-02-13 12:41:07 CET
Perhaps this implementation does not honour the *_keep. I had previously assumed that it wasn't the job of the agent to honour this so I'll look into it. It's certainly not a problem on GNOME.

One thing you could try for giggles, is to kill the KDE process for the agent and run the mate-polkit agent instead (you can just do this in a terminal in a running KDE session as your regular user).

If this "remembers" things better then it's a bug in the KDE agent I'd say.
Comment 5 Dimitrios Glentadakis 2014-02-14 05:31:01 CET
Thanks Collin, with mate-polkit it works fine, and i have the key-icon in the system tray.
How i could use definitely the mate-polkit instead of the once for kde ? (i'm running kde although)
Comment 6 Colin Guthrie 2014-02-14 10:25:48 CET
To use a different component here you'll need to override both KDE and MATE .desktop files.

1. Copy /usr/share/autostart/polkit-kde-authentication-agent-1.desktop to /etc/xdg/autostart/ and edit it such that it read OnlyShowIn=XXX (or some other value that != KDE).

2. Edit /etc/xdg/autostart/polkit-mate-authentication-agent-1.desktop (I really don't like it's in /etc tree by default...) and include KDE in the OnlyShowIn= line with the others.

That should do it, but really we need to fix the problem under KDE.

Neoclust, is this something you'd be able to poke at?

CC: (none) => mageia

Comment 7 Colin Guthrie 2014-02-14 10:26:57 CET
Oh and I should say the "icon" is purely an implementation detail. The Mate folks have it, but other Desktop's don't. This is not a requirement to remembering the auth.

Summary: Root authentication is not temporised in Mageia 4 => KDE polkit agent does not remember auth.

Comment 8 Dimitrios Glentadakis 2014-02-26 06:39:33 CET
I tried to revert the changes in comment 6 and now the temporisation of the authentication it works with kde-polkit (but no icon in system tray).

I will check after some reboots if it still works
Comment 9 Dimitrios Glentadakis 2014-02-28 07:53:30 CET
It works for me now with the kde-polkit too, maybe something triggered after the revert

Status: NEW => RESOLVED
Resolution: (none) => WORKSFORME


Note You need to log in before you can comment on or make changes to this bug.