diff options
author | Ondrej Kozina <okozina@redhat.com> | 2023-04-05 13:12:20 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-05 15:46:25 +0200 |
commit | 175b654402a11b01870e823f4eaa913b27ed8a63 (patch) | |
tree | 74f6b61cecad8d10a2519f61dcd5bae4fa11e7a0 /block/opal_proto.h | |
parent | sed-opal: do not add same authority twice in boolean ace. (diff) | |
download | linux-175b654402a11b01870e823f4eaa913b27ed8a63.tar.xz linux-175b654402a11b01870e823f4eaa913b27ed8a63.zip |
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>
Diffstat (limited to 'block/opal_proto.h')
-rw-r--r-- | block/opal_proto.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/block/opal_proto.h b/block/opal_proto.h index 7152aa1f1a49..b045cbb9d76e 100644 --- a/block/opal_proto.h +++ b/block/opal_proto.h @@ -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 */ |