mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
sed-opal: add helper for adding user authorities in ACE.
Move ACE construction away from add_user_to_lr routine and refactor it to be used also in later code. Also adds boolean operators defines from TCG Core specification. Signed-off-by: Ondrej Kozina <okozina@redhat.com> Tested-by: Luca Boccassi <bluca@debian.org> Tested-by: Milan Broz <gmazyland@gmail.com> Link: https://lore.kernel.org/r/20230405111223.272816-3-okozina@redhat.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
2fce95b196
commit
175b654402
@@ -86,6 +86,15 @@ enum opal_response_token {
|
||||
#define OPAL_MSID_KEYLEN 15
|
||||
#define OPAL_UID_LENGTH_HALF 4
|
||||
|
||||
/*
|
||||
* Boolean operators from TCG Core spec 2.01 Section:
|
||||
* 5.1.3.11
|
||||
* Table 61
|
||||
*/
|
||||
#define OPAL_BOOLEAN_AND 0
|
||||
#define OPAL_BOOLEAN_OR 1
|
||||
#define OPAL_BOOLEAN_NOT 2
|
||||
|
||||
/* Enum to index OPALUID array */
|
||||
enum opal_uid {
|
||||
/* users */
|
||||
|
||||
Reference in New Issue
Block a user