Ignores HintSystem (UDISKS_SYSTEM)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udisks2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
[18.04 amd64]
HintSystem (which can be set by a udev rule with ENV{UDISKS_
# UDISKS_SYSTEM=0
$ udisksctl info -b /dev/sr0 /org/freedeskto
org.freedeskt
Configuration: []
CryptoBacki
Device: /dev/sr0
...
HintAuto: true
HintIconName:
HintIgnore: false
HintName:
HintPartiti
HintSymboli
HintSystem: false
Id: by-uuid-
...
UserspaceMo
org.freedeskt
MountPoints: /media/tj/Xubuntu 19.10 amd64
Size: 0
$ mount | grep media/tj
/dev/sr0 on /media/tj/Xubuntu 19.10 amd64 type iso9660 (ro,nosuid,
# UDISKS_SYSTEM=1
$ udisksctl info -b /dev/sr0
/org/freedeskto
org.freedeskt
Configuration: []
CryptoBacki
Device: /dev/sr0
...
HintAuto: true
HintIconName:
HintIgnore: false
HintName:
HintPartiti
HintSymboli
HintSystem: true
Id: by-uuid-
...
UserspaceMo
org.freedeskt
MountPoints: /media/tj/Xubuntu 19.10 amd64
Size: 0
$ mount | grep media/tj
/dev/sr0 on /media/tj/Xubuntu 19.10 amd64 type iso9660 (ro,nosuid,
helper=udisks2)
The documentation is a little bit confusing here -- the "HintSystem" property is not about the device access or filesystem permissions, it's about "accessing" UDisks functions using PolicyKit.
See the policies here [1] for mounting filesystems -- "normal" devices can be mounted by a "regular" user (in an active session), but "system" devices require root authentication (similar policies exist for unlocking encrypted devices, ejecting drives etc.)
[1] https:/ /github. com/storaged- project/ udisks/ blob/master/ data/org. freedesktop. UDisks2. policy. in#L15