History

block: sed-opal: keyring support for SED keys

Extend the SED block driver so it can alternatively obtain a key from a sed-opal kernel keyring. The SED ioctls will indicate the source of the key, either directly in the ioctl data or from the keyring. This allows the use of SED commands in scripts such as udev scripts so that drives may be automatically unlocked as they become available.

Greg Joyce committed 3 years ago

Commit 3bfeb611 parent 5c82efc4 files · +184 −3Browse files

Showing the changes to include/uapi (1 of 4 files). Show all

Unified · Split

include/uapi/linux/sed-opal.h+7−1
@@ -49,10 +49,16 @@ enum opal_lock_flags { · 48 unmodified lines
4949 OPAL_SAVE_FOR_LOCK = 0x01,
5050 };
5151
52+enum opal_key_type {
53+ OPAL_INCLUDED = 0, /* key[] is the key */
54+ OPAL_KEYRING, /* key is in keyring */
55+};
56+
5257 struct opal_key {
5358 __u8 lr;
5459 __u8 key_len;
55− __u8 __align[6];
60+ __u8 key_type;
61+ __u8 __align[5];
5662 __u8 key[OPAL_KEY_MAX];
5763 };
5864

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t