ATA Security patch to atacontrol

Daniel Roethlisberger daniel at roe.ch
Tue Sep 30 22:45:17 UTC 2008


Daniel Roethlisberger <daniel at roe.ch> 2008-09-30:
> I've added experimental support for the ATA Security command set to
> atacontrol.  Please test and review.  If you have some spare disk(s)
> with ATA Security support and a BIOS which does not freeze the security
> configuration, I'd like to hear about any results of playing with this
> patch.  See the changes to the manual page for details on the commands.
> 
> Note that you may render disks unusable using the ATA Security commands.
> Use with great care.

I've slightly improved the patch.  Changes:
- More sane timeouts on ATA commands
- Print a security usage if parameters are illegal
- Extended the manual page with some examples and notes about which
  commands are lethal to mounted filesystems
- Teach the kernel about the ATA Security command codes (for console
  printf messages)

Even with the kernel changes, a kernel rebuild is not required in order
to test the code.

http://daniel.roe.ch/code/ata/atasecurity-20081001-complete.diff

Please send me feedback.

-- 
Daniel Roethlisberger
http://daniel.roe.ch/


More information about the freebsd-hackers mailing list