FS#13644 - [hal] new hal/polkit problem

Attached to Project: Arch Linux
Opened by Michael Hellwig (the_eye) - Tuesday, 03 March 2009, 11:22 GMT
Last edited by Jan de Groot (JGC) - Tuesday, 10 November 2009, 18:27 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After the problems reported by other ppl in other bugs re the newest version of hal and how it breaks automounting, most notably in xfce when logging in via slim, this was solved by using the "ck_launch_session" method or by using kdm instead.

Now I have a new problem when attempting to mount an external harddrive that is encrypted via dm_crypt-luks.

I try to do this via dolphin (the kde filemanager)

Also, if I luksOpen by hand in a terminal (using sudo) I can't mount the resulting device under /dev/mapper, with the same errormessage.

The error is:
org.freedesktop.hal.storage.mount-fixed auth_admin_keep_always

i.e. it seems that the whole consolekit thing will allow me to mount removable drives, but that if said removable drives are encrypted, they are not recognised as removable. Or something. This sucks big time. Of course afaiu I could edit PolicyKit.conf, but I thought this was not the way to do it?


Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Jan de Groot (JGC)
Tuesday, 10 November 2009, 18:27 GMT
Reason for closing:  Fixed
Comment by Michael Hellwig (the_eye) - Wednesday, 04 March 2009, 21:05 GMT
further info: the problem is not due to the encrypted-ness of the volume but due to the fact that it's connected via eSATA. The same external harddrive connected via USB makes no problems at all.
Comment by Matthias Dienstbier (fs4000) - Tuesday, 12 May 2009, 21:23 GMT
Could you try issuing "polkit-auth --user [yourusername] --grant org.freedesktop.hal.storage.mount-fixed" as root?

This _should_ permit you to mount "fixed" media. (eSATA cannot be recognized as removable since it is usually connected to one of the SATA ports on your mainboard.)
But I think there is a bug in HAL which makes it ignoring this authorization. At least for me the above command does not show any effect.

You can revert the change with "polkit-auth --user [yourusername] --revoke org.freedesktop.hal.storage.mount-fixed"
Comment by Devin Cofer (Ranguvar) - Tuesday, 19 May 2009, 23:13 GMT
I can confirm. Using the method mentioned by the reporter as described in the forum thread does not work -- it works for removable devices, but not fixed ones.
Trying fs4000's test line does not fix the problem (unless you need to restart Hal/KDE?), but the key (or whatever they're calling it) _is_ set -- another run of the same command tells me it's already in place.

I'm using an internal NTFS drive.
Comment by Matthias Dienstbier (fs4000) - Wednesday, 20 May 2009, 00:23 GMT

Loading...