Skip to content

Commit a0f4042

Browse files
committed
Import the latest <linux/fscrypt.h>
Import <linux/fscrypt.h> from Linux v6.16. This is needed to support adding hardware-wrapped keys.
1 parent 7852250 commit a0f4042

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

fscrypt_uapi.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ struct fscrypt_key_specifier {
119119
*/
120120
struct fscrypt_provisioning_key_payload {
121121
__u32 type;
122-
__u32 __reserved;
122+
__u32 flags;
123123
__u8 raw[];
124124
};
125125

@@ -128,7 +128,9 @@ struct fscrypt_add_key_arg {
128128
struct fscrypt_key_specifier key_spec;
129129
__u32 raw_size;
130130
__u32 key_id;
131-
__u32 __reserved[8];
131+
#define FSCRYPT_ADD_KEY_FLAG_HW_WRAPPED 0x00000001
132+
__u32 flags;
133+
__u32 __reserved[7];
132134
__u8 raw[];
133135
};
134136

0 commit comments

Comments
 (0)