Is it necessary to open the device with the O_RDWR flag for example for isValidSEDDisk function?
I ask because on some systems with UDEV with below entry:
# watch metadata changes by tools closing the device after writing
KERNEL!="sr*", OPTIONS+="watch"
and where a lot of disks are used many UDEV events are unnecessarily generated even if we only check if disks supports SED e.g:
sedutil-cli --isValidSED /dev/sda
/dev/sda NO --- Hitachi HUA722010CLA330 JA2OA7EA
The only way I had enough authority to issue IOCTL commands was when using that flag. There may be some obscure way to bypass this but I didn't find it.
https://github.com/Drive-Trust-Alliance/sedutil/blob/d3de8e45e06a21d31cca0046ceb16ced1ef3563a/linux/DtaDevLinuxSata.cpp#L75
Is it necessary to open the device with the O_RDWR flag for example for isValidSEDDisk function? I ask because on some systems with UDEV with below entry:
and where a lot of disks are used many UDEV events are unnecessarily generated even if we only check if disks supports SED e.g:
See also:
https://access.redhat.com/solutions/1465913