After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 786476 - My system asks for password twice when I mount disc image files using the option from nautilus context menu
My system asks for password twice when I mount disc image files using the opt...
Status: RESOLVED NOTGNOME
Product: gnome-disk-utility
Classification: Core
Component: general
3.25.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-disk-utility-maint
gnome-disk-utility-maint
Depends on:
Blocks:
 
 
Reported: 2017-08-18 17:20 UTC by Strangiato
Modified: 2017-08-21 18:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
policy file content (536.76 KB, application/pdf)
2017-08-18 20:54 UTC, Strangiato
Details

Description Strangiato 2017-08-18 17:20:47 UTC
My summary says itself.
The images are mounted after I enter my password the first time (Shell shows a notification and nautilus shows the files in background of the second pw dialog).
Comment 1 Strangiato 2017-08-18 17:23:28 UTC
Is ask for pw to mount disc image files the correct behavior?
Is there some security risk if no pw is required?
Comment 2 André Klapper 2017-08-18 19:56:34 UTC
What is "your system"? (distribution?)
Which actual password does this refer to?
Comment 3 Kai Lüke 2017-08-18 20:22:27 UTC
Hello,

the permission rules are defined by UDisks or even your downstream distribution.
You can check /usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy for "loop-setup" to have <allow_active>yes.
and if it behaves differently maybe the session detection is disturbed.

For me (GNOME 3.22 on Debian Sid with Disks 3.25.90) it works without authentification… and even if I force authentification I still get only one password dialog.

Can you provide details about your environment (distribution and udisks, GNOME versions and the the .policy file)?
Comment 4 Strangiato 2017-08-18 20:54:14 UTC
Created attachment 357924 [details]
policy file content

I'm testing Gnome 3.26 beta on Antergos (Arch-based).

First dialog asks my root pw to mount the ISO file, the second dialog asks the same pw to "modiifty the loop device".

udisks 2.7.2, pdf shows my .policy file content.
Comment 5 Kai Lüke 2017-08-21 18:14:08 UTC
Hi,

thanks for the information.
I don't know why you have this content in the file, but according to that it works as expected.
If you did not modify it yourself please ask you distribution why they don't ship <allow_active>yes</allow_active> for "loop-setup" in the UDisks policy.

Regards,
Kai