hdparm fails to handle security configuration...
Bug #487168 reported by
Daniel J Blueman
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hdparm (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
Bug Description
Binary package hint: hdparm
When adding hdparm disk unlock commands to /etc/hdparm.conf, we see it fail to specify the password:
/dev/sdb {
user-master = u
security_unlock = letmein
}
-> simulate udev event
# DEVNAME=/dev/sdb bash -x /lib/udev/hdparm
...
+ /sbin/hdparm -B254 u -q --security-unlock /dev/sdb
-> additionally 'man hdparm.conf' states 'security_mode = u', which should be 'user-master = u'
Changed in hdparm (Ubuntu): | |
status: | Confirmed → Triaged |
importance: | Undecided → Medium |
To post a comment you must log in.
With the above fixes, we still meet failure:
# DEVNAME=/dev/sdb bash -x /lib/udev/hdparm
...
+ /sbin/hdparm -B254 -q --user-master u -q --security-unlock 'letmein' /dev/sdb
# echo $?
22
-> this is because the security commands are exclusive within hdparm, so this is needed:
# /sbin/hdparm --user-master u --security-unlock 'letmein' /dev/sdb
-> though we are closer