indicator-sensors icon indicating copy to clipboard operation
indicator-sensors copied to clipboard

udisks2 ATA power check triggers authentication prompt on inactive users

Open notpeelz opened this issue 10 years ago • 4 comments

As per the org.freedesktop.udisks2.ata-check-power UDisks2 Polkit policy, ATA power-check calls from inactive users require privilege elevation.

The udisks_drive_ata_call_pm_get_state_finish call in plugins/udisks2/is-udisks2-plugin.c triggers the said privilege elevation, thus causing several authentication prompts to appear after unlocking the session.

udisks_authentication_prompt

Edit: it also seems to occur with udisks_drive_ata_call_smart_update_finish and a couple other methods, hence the several authentication prompts showing up after unlocking.

notpeelz avatar Jul 30 '15 20:07 notpeelz

Is this still occurring?

alexmurray avatar Jan 20 '20 05:01 alexmurray

Still occurs. Tested with release 1.1 (2a00714be9b85f503a6d04bd9edc2a128c02762c) on my old dusty laptop running Ubuntu Xenial (16.04 LTS).

notpeelz avatar Jan 22 '20 01:01 notpeelz

Can you confirm which desktop environment you are running and whether you are using the snap or if you built this yourself (or whatever means you used to install indicator-sensors)?

alexmurray avatar Jan 22 '20 05:01 alexmurray

Running on Ubuntu 16.04 LTS with Unity DE.

This is how I tested it:

git clone https://github.com/alexmurray/indicator-sensors.git && cd indicator-sensors
git reset --hard 2a00714be9b85f503a6d04bd9edc2a128c02762c
./autogen && sudo make install
/usr/local/bin/indicator-sensors

notpeelz avatar Jan 22 '20 18:01 notpeelz