storaged-project / udisks

The UDisks project provides a daemon, tools and libraries to access and manipulate disks, storage devices and technologies.
http://storaged.org/doc/udisks2-api/latest/
Other
334 stars 142 forks source link

"Authentication required" after system unlocks (not suspend) #1265

Open 0x6A7232 opened 4 months ago

0x6A7232 commented 4 months ago

When returning from screen locked (using xflock4 - whether auto lock or manually triggered), a dialog box appears requesting authentication for udisk2.ata-smart-update . I'm using psensor to monitor the disks, using the udisks2 option.

NB: This dialog box only displays for ONE device, and it's random which ATA device it will be. The other either doesn't request it or gets the sudo permissions from the first prompt, I guess. I've captured both but to do so I had to re-lock the screen then unlock it again.

Also, if I'm quick about unlocking right after (before the screen goes into power saving mode) I'll get no prompt at all.

I'm currently running MX Linux 23.2, based on Debian Bullseye.
Details:

Host: MS-7972 2.0 
Kernel: 6.6.11-amd64 
Uptime: 4 days, 5 hours, 2 mins 
Packages: 3529 (dpkg), 23 (flatpak) 
Shell: bash 5.2.15 
Resolution: 1920x1080 
DE: Xfce 4.18 
WM: Xfwm4 
WM Theme: Matcha-dark-azul 
Theme: Matcha-dark-azul [GTK2/3] 
Icons: Papirus-mxblue-darkpanes [GTK2], Papirus-Dark [GTK3] 
Terminal: xfce4-terminal 
Terminal Font: Liberation Mono 11 
CPU: Intel i7-7700K (8) @ 4.800GHz 
GPU: AMD ATI Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT 
Memory: 4826MiB / 15961MiB 

Screenshot-8

Screenshot-9

tbzatek commented 4 months ago

This looks like a polkit + consolekit/logind issue, not realizing your active seat. Nothing we can do from UDisks side.

For the record, the polkit rules look like this: https://github.com/storaged-project/udisks/blob/master/data/org.freedesktop.UDisks2.policy.in#L430-L438