udisks icon indicating copy to clipboard operation
udisks copied to clipboard

TODO: Restrict Block.Format() ATA secure erase on top-level block objects only

Open tbzatek opened this issue 3 years ago • 0 comments

The org.freedesktop.UDisks2.Block.Format('erase=ata-secure-erase') that is called on a partition seems to be calling udisks_linux_drive_ata_secure_erase_sync() on a drive the UDisksBlock belongs to, destroying all other data. Found by reading the code, I truly hope I'm wrong --> needs to be tested.

Also make use of BSD advisory locks: https://github.com/storaged-project/udisks/blob/0af02e3532cd3e211e629e73a7bd973892a8baca/src/udiskslinuxblock.c#L2345-L2348

tbzatek avatar May 09 '22 12:05 tbzatek