Bug 363932 - Device Notifier fails to ignore LUKS volume despite solid rules
Summary: Device Notifier fails to ignore LUKS volume despite solid rules
Status: REOPENED
Alias: None
Product: plasmashell
Classification: Plasma
Component: DataEngines (other bugs)
Version First Reported In: 5.4.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-04 10:23 UTC by Michael Büker
Modified: 2025-04-27 01:47 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments
Unwanted entry in Device Notifier (47.56 KB, image/png)
2016-06-04 10:24 UTC, Michael Büker
Details
Output of solid-hardware confirming the ignore property (49.55 KB, image/png)
2016-06-04 10:25 UTC, Michael Büker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Büker 2016-06-04 10:23:23 UTC
Several system partitions show up in Device Notifier, this is known as bug 358085. Since I could not find a workaround within KDE (especially because of bug 290377), I used a udev rule to set the udisks2 HintIngore property for my system volumes.

This rule shows correctly in solid-hardware output (see screenshot), but the volume is still displayed. Device Notifier should be ignoring it.

Reproducible: Always

Steps to Reproduce:
1. Have a LUKS volume
2. Tell udev to tell udisks to tell solid to hide it.

Actual Results:  
The volume still shows up in in Device Notifier.

Expected Results:  
Device Notifier should ignore volumes if the "ignore" property is set in solid.
Comment 1 Michael Büker 2016-06-04 10:24:34 UTC
Created attachment 99362 [details]
Unwanted entry in Device Notifier
Comment 2 Michael Büker 2016-06-04 10:25:08 UTC
Created attachment 99363 [details]
Output of solid-hardware confirming the ignore property
Comment 3 Matt Whitlock 2020-04-07 05:55:22 UTC
I have the same issue, though my LUKS volumes are non-removable (and I have Device Notifier configured to show all devices). Despite that I have set UDISKS_IGNORE="1" on my LUKS volumes, Device Notifier still shows them. As in Comment 2, solid-hardware5 shows 'StorageAccess.ignored' and 'StorageVolume.ignored' are both true.

Device Notifier respects the 'ignored' hints on my non-LUKS volumes, but it apparently ignores the hint on LUKS volumes.

I am on Plasma 5.18.3.
Comment 4 Nate Graham 2020-11-25 00:50:50 UTC
If it works in Solid, but not the applet, that would be a bug in the Data Engine which acts as a go-between. Moving there.

Perhaps this could be fixed by porting the applet away from the data engine and using Solid directly. That'll probably happen in Plasma 6 at the latest, after Data Engines are removed.

I know Kai had a WIP branch to port it to a saner backend so maybe that could be done sooner.
Comment 5 Nate Graham 2024-08-26 22:12:21 UTC
That has now happened for Plasma 6.2.0.
Comment 6 Tyler Riddle 2025-04-27 01:47:15 UTC
Reopening because I've been tearing my hair out trying to figure out why I can't stop my encrypted external storage from showing up in the device notifier. My experience is identical to the original report. I see a comment that this bug has been fixed in Plasma 6.2 but I am running Plasma 6.3 coming out of Debian Trixie and I can't get this noise in the device notifier to go away. Like the original report, I am able to successfully ignore other external storage. It appears to be the presence of LUKS that makes it unignorable.

I set a rule in udev:
ACTION=="add|change", SUBSYSTEM=="block", ENV{ID_USB_SERIAL}=="USB_SanDisk_3.2Gen1_04015e8d9545760cbb5adf8f417f6c7770a5cea29fffd2576fbc36c4f6effa149bff00000000000000000000204fe2bdff85801881558107ce3000df-0:0", ENV{UDISKS_IGNORE}="1"

I don't seem to have a solid-hardware binary but can confirm HINT_IGNORE makes it into udisks (via udisksctl dump) for the entire drive and the partition:
/org/freedesktop/UDisks2/block_devices/sdc:
  org.freedesktop.UDisks2.Block:
    Configuration:              []
    CryptoBackingDevice:        '/'
    Device:                     /dev/sdc
    DeviceNumber:               2080
    Drive:                      '/org/freedesktop/UDisks2/drives/USB_SanDisk_3_2e2Gen1_04015e8d9545760cbb5adf8f417f6c7770a5cea29fffd2576fbc36c4f6effa149bff00000000000000000000204fe2bdff85801881558107ce3000df'
    HintAuto:                   true
    HintIconName:               
    HintIgnore:                 true
    HintName:                   
    HintPartitionable:          true
    HintSymbolicIconName:       
    HintSystem:                 false
    Id:                         
    IdLabel:                    
    IdType:                     
    IdUUID:                     
    IdUsage:                    
    IdVersion:                  
    MDRaid:                     '/'
    MDRaidMember:               '/'
    PreferredDevice:            /dev/sdc
    ReadOnly:                   false
    Size:                       494206451712
    Symlinks:                   /dev/disk/by-diskseq/99
                                /dev/disk/by-id/usb-USB_SanDisk_3.2Gen1_04015e8d9545760cbb5adf8f417f6c7770a5cea29fffd2576fbc36c4f6effa149bff00000000000000000000204fe2bdff85801881558107ce3000df-0:0
                                /dev/disk/by-path/pci-0000:02:00.0-usb-0:7:1.0-scsi-0:0:0:0
                                /dev/disk/by-path/pci-0000:02:00.0-usbv2-0:7:1.0-scsi-0:0:0:0
    UserspaceMountOptions:      
  org.freedesktop.UDisks2.PartitionTable:
    Partitions:         /org/freedesktop/UDisks2/block_devices/sdc1
    Type:               dos

/org/freedesktop/UDisks2/block_devices/sdc1:
  org.freedesktop.UDisks2.Block:
    Configuration:              [('crypttab', {'name': <b'backup01'>, 'device': <b'UUID=de9ab957-6766-4788-8d55-768d28587718'>, 'passphrase-path': <b'/etc/crypt/backup01'>, 'options': <
b'noauto'>})]
    CryptoBackingDevice:        '/'
    Device:                     /dev/sdc1
    DeviceNumber:               2081
    Drive:                      '/org/freedesktop/UDisks2/drives/USB_SanDisk_3_2e2Gen1_04015e8d9545760cbb5adf8f417f6c7770a5cea29fffd2576fbc36c4f6effa149bff00000000000000000000204fe2bdff
85801881558107ce3000df'
    HintAuto:                   true
    HintIconName:               
    HintIgnore:                 true
    HintName:                   
    HintPartitionable:          true
    HintSymbolicIconName:       
    HintSystem:                 false
    Id:                         by-uuid-de9ab957-6766-4788-8d55-768d28587718
    IdLabel:                    backup01
    IdType:                     crypto_LUKS
    IdUUID:                     de9ab957-6766-4788-8d55-768d28587718
    IdUsage:                    crypto
    IdVersion:                  2
    MDRaid:                     '/'
    MDRaidMember:               '/'
    PreferredDevice:            /dev/sdc1
    ReadOnly:                   false
    Size:                       494205403136
    Symlinks:                   /dev/disk/by-diskseq/99-part1
                                /dev/disk/by-id/usb-USB_SanDisk_3.2Gen1_04015e8d9545760cbb5adf8f417f6c7770a5cea29fffd2576fbc36c4f6effa149bff00000000000000000000204fe2bdff85801881558107ce3000df-0:0-part1
                                /dev/disk/by-label/backup01
                                /dev/disk/by-partuuid/a03c4120-01
                                /dev/disk/by-path/pci-0000:02:00.0-usb-0:7:1.0-scsi-0:0:0:0-part/by-label/backup01
                                /dev/disk/by-path/pci-0000:02:00.0-usb-0:7:1.0-scsi-0:0:0:0-part/by-partnum/1
                                /dev/disk/by-path/pci-0000:02:00.0-usb-0:7:1.0-scsi-0:0:0:0-part/by-partuuid/a03c4120-01
                                /dev/disk/by-path/pci-0000:02:00.0-usb-0:7:1.0-scsi-0:0:0:0-part/by-uuid/de9ab957-6766-4788-8d55-768d28587718
                                /dev/disk/by-path/pci-0000:02:00.0-usb-0:7:1.0-scsi-0:0:0:0-part1
                                /dev/disk/by-path/pci-0000:02:00.0-usbv2-0:7:1.0-scsi-0:0:0:0-part1
                                /dev/disk/by-uuid/de9ab957-6766-4788-8d55-768d28587718
    UserspaceMountOptions:      
  org.freedesktop.UDisks2.Encrypted:
    ChildConfiguration:         []
    CleartextDevice:            '/'
    HintEncryptionType:         
    MetadataSize:               16777216
  org.freedesktop.UDisks2.Partition:
    Flags:              0
    IsContained:        false
    IsContainer:        false
    Name:               
    Number:             1
    Offset:             1048576
    Size:               494205403136
    Table:              '/org/freedesktop/UDisks2/block_devices/sdc'
    Type:               0x83
    UUID:               a03c4120-01

I don't see any other relevant entries.