flatpak icon indicating copy to clipboard operation
flatpak copied to clipboard

Permission to access drive SMART attributes

Open linuxhw opened this issue 6 years ago • 3 comments
trafficstars

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.

linuxhw avatar Dec 21 '18 05:12 linuxhw

This issue is blocking me from creating a flatpak for QDiskInfo

edisionnano avatar Aug 28 '24 18:08 edisionnano

--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.

rusty-snake avatar Aug 28 '24 18:08 rusty-snake

--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.

hfiguiere avatar Aug 29 '24 00:08 hfiguiere