Per https://linux.die.net/man/8/smp_utils, /dev/mpt2ctl is needed for the MPT fusion SAS. Looking at the classic strace, this seems to:
- need /dev/mpt2ctl and /dev/mpt2ctl_wd added to the device cgroup
- add
/dev/mpt2ctl{,_wd} rw,
to the apparmor policy
Beyond that, it is just ioctls that are required. An interface implementing this would be easy enough, but it isn’t clear to me what should be in the interface, and therefore, what it should be called. We have hardware-observe
which allows reading from various hardware, so hardware-control
seems like an option, but with a name like that, we’d eventually add other accesses to it and while grouping reads of hardware seems somewhat ok, grouping writes feels wrong (we did just add a new cpu-control
recently after all). I think I’m leaning towards something related to ‘disks’, eg, disks-control
. Perhaps in it we would allow access to block devices, as is suggested in Classic Confinement Request for the wimlib Snap and it could also cover smartctl and hdparm (Snap interface to run smartctl) along with /dev/mpt2ctl.