flatpak
flatpak copied to clipboard
Permission to access drive SMART attributes
Linux distribution and version
Fedora 29 or any other Linux distro.
Flatpak version
1.0.1
Description of the problem
Please provide an option to permit read of drive S.M.A.R.T. attributes via smartctl -x /dev/sda: http://docs.flatpak.org/en/latest/sandbox-permissions.html
This is needed by https://flathub.org/apps/details/org.linux_hardware.hw-probe.
/dev is blacklisted for now, so --filesystem=/dev is not effective here.
Thank you.
Steps to reproduce
Run samrtctl -x /dev/sda from Flatpak package.
This issue is blocking me from creating a flatpak for QDiskInfo
--filesystem=/dev
The canonical way would be --device=all I think.
Reading S.M.A.R.T. requires root. But this is a different restriction.
--device=all ought to be enough. Note that this doesn't grant permissions, it just expose the whole of /dev. Root permission isn't really possible.