Re: [PATCH 0/3] block: sed-opal: add support for shadow MBR done flag and write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 1 May 2019, Christoph Hellwig wrote:

I successfully tested toggling the MBR done flag and writing the shadow MBR
using some tools I hacked together[4] with a Samsung SSD 850 EVO drive.

Can you submit the tool to util-linux so that we get it into distros?

There is already Scott's sed-opal-temp[1] and a fork by Jonas that adds support for older version of these new IOCTLs[2]. There was already some discussion of getting that to util-linux.[3]

While I like my hack, sed-opal-temp can do much more (my tool supports just the few things I actually use). But there are two things which sed-opal-temp currently lacks which my hack has:

* It can use a PBKDF2 hash (salted by disk serial number) of the password
  rather than the password directly. This makes it compatible with sedutil
  and I think it's also better practice (as firmware can contain many
  surprises).

* It contains a 'PBA' (pre-boot authorization) tool. A tool intended to be
  run from shadow mbr that asks for a password and uses it to unlock all
  disks and set shadow mbr done flag, so after restart the computer boots
  into the real OS.

@Scott: What are your plans with sed-opal-temp? If you want I can update Jonas' patches to the adapted IOCTLs. What are your thoughts on PW hashing and a PBA tool?

Best regards,
David

[1] https://github.com/ScottyBauer/sed-opal-temp
[2] https://github.com/ghostav/sed-opal-temp
[3] https://lkml.org/lkml/2019/2/4/736



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux