History

fscrypt: use FSCRYPT_* definitions, not FS_*

Update fs/crypto/ to use the new names for the UAPI constants rather than the old names, then make the old definitions conditional on !__KERNEL__.

Eric Biggers committed 7 years ago

Commit 3b6df591 parent 2336d0d6 files · +46 −43Browse files

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

Unified · Split

include/uapi/linux/fscrypt.h+2−0
@@ -55,6 +55,7 @@ struct fscrypt_key { · 54 unmodified lines
5555 /**********************************************************************/
5656
5757 /* old names; don't add anything new here! */
58+#ifndef __KERNEL__
5859 #define FS_KEY_DESCRIPTOR_SIZE FSCRYPT_KEY_DESCRIPTOR_SIZE
5960 #define FS_POLICY_FLAGS_PAD_4 FSCRYPT_POLICY_FLAGS_PAD_4
6061 #define FS_POLICY_FLAGS_PAD_8 FSCRYPT_POLICY_FLAGS_PAD_8
@@ -76,5 +77,6 @@ struct fscrypt_key { · 15 unmodified lines
7677 #define FS_KEY_DESC_PREFIX FSCRYPT_KEY_DESC_PREFIX
7778 #define FS_KEY_DESC_PREFIX_SIZE FSCRYPT_KEY_DESC_PREFIX_SIZE
7879 #define FS_MAX_KEY_SIZE FSCRYPT_MAX_KEY_SIZE
80+#endif /* !__KERNEL__ */
7981
8082 #endif /* _UAPI_LINUX_FSCRYPT_H */

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