Public bug reported:

[18.04 amd64]

HintSystem (which can be set by a udev rule with ENV{UDISKS_SYSTEM}="1")
is supposed to "require additional permissions to access" [0] but there
is no difference in the mount permissions when it is set:

# UDISKS_SYSTEM=0

$ udisksctl info -b /dev/sr0                                                    
                                     
/org/freedesktop/UDisks2/block_devices/sr0:                                     
                                                                              
  org.freedesktop.UDisks2.Block:                                                
                                                                              
    Configuration:              []                                              
                                                                              
    CryptoBackingDevice:        '/'                                             
                                                                              
    Device:                     /dev/sr0                                        
                                                                              
...
    HintAuto:                   true
    HintIconName:
    HintIgnore:                 false
    HintName:
    HintPartitionable:          false
    HintSymbolicIconName:
    HintSystem:                 false
    Id:                         by-uuid-2019-06-22-02-06-15-00
...
    UserspaceMountOptions:      uhelper=udisks2
  org.freedesktop.UDisks2.Filesystem:
    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,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,uid=1000,gid=1000,dmode=500,fmode=400,uhelper=udisks2)

# UDISKS_SYSTEM=1

$ udisksctl info -b /dev/sr0
/org/freedesktop/UDisks2/block_devices/sr0:             
  org.freedesktop.UDisks2.Block:                     
    Configuration:              []                                              
                                                                              
    CryptoBackingDevice:        '/'                                             
                                                                              
    Device:                     /dev/sr0                                        
                                            
...
    HintAuto:                   true                                        
    HintIconName:                                                           
    HintIgnore:                 false                                   
    HintName:                           
    HintPartitionable:          false                 
    HintSymbolicIconName:            
    HintSystem:                 true                            
    Id:                         by-uuid-2019-06-22-02-06-15-00
...
    UserspaceMountOptions:      uhelper=udisks2
  org.freedesktop.UDisks2.Filesystem:
    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,nodev,relatime,nojoliet,check=s,map=n,blocksize=2048,uid=1000,gid=1000,dmode=500,fmode=400,u
helper=udisks2)


[0] 
http://storaged.org/doc/udisks2-api/latest/gdbus-org.freedesktop.UDisks2.Block.html#gdbus-property-org-freedesktop-UDisks2-Block.HintSystem

** Affects: udisks2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1836499

Title:
  Ignores HintSystem (UDISKS_SYSTEM)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1836499/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to