alexmurray / indicator-sensors

73 stars 11 forks source link

udisks2 ATA power check triggers authentication prompt on inactive users #11

Open notpeelz opened 9 years ago

notpeelz commented 9 years ago

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.

alexmurray commented 4 years ago

Is this still occurring?

notpeelz commented 4 years ago

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

alexmurray commented 4 years ago

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)?

notpeelz commented 4 years ago

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