Summary: | UDI (Unique Device Identifier) provided by solid is not actually unique, entry gets overwritten | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-solid | Reporter: | Bernard Gray <bernard.gray> |
Component: | general | Assignee: | Lukáš Tinkl <lukas> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | kdelibs-bugs, meven29 |
Priority: | NOR | ||
Version: | 5.44.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/solid/a99c6136da2d232dd699a8accd58deae1db3be41 | Version Fixed In: | 5.69 |
Description
Bernard Gray
2020-03-16 02:43:05 UTC
To extend ADDITIONAL INFORMATION section: ...making the shortcut inaccessible to user1 via the Devices panel list. Note that user1 still *sees* the share/Device listed (which is expected), but clicking on it attempts to display the contents of the mountpoint in user2's home directory (which is *not* expected) Further clarification: When mounting the network share, use `sudo mount.cifs` (not the KDE userspace way). In my specific use case, users mount network shares using mount.cifs called by the pam_mount module at login - Differential review: https://phabricator.kde.org/D28476 Git commit a99c6136da2d232dd699a8accd58deae1db3be41 by Méven Car. Committed on 01/04/2020 at 10:28. Pushed by meven into branch 'master'. Samba: Ensure to differenciate mounts sharing the same source Summary: `getmntent` for samba returns fsname of the form "//server/folder" (same as `mount`) It is not sufficient to use in udi as device name as it does not differenciate mounts sharing the same source but having different mount points. FIXED-IN: 5.69 Test Plan: With a local cifs mount point: Before $ solid-hardware5 list | grep ourfiles udi = '/org/kde/fstab///meven-synapse/ourfiles' After $ solid-hardware5 list | grep ourfiles udi = '/org/kde/fstab///meven-synapse/ourfiles:/media/samba' Reviewers: #frameworks, sitter Reviewed By: sitter Subscribers: ahmadsamir, anthonyfieroni, sitter, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D28476 M +4 -0 src/solid/devices/backends/fstab/fstabhandling.cpp https://commits.kde.org/solid/a99c6136da2d232dd699a8accd58deae1db3be41 |