summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJoe Richey <joerichey@google.com>2017-04-06 16:14:05 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2017-05-08 18:10:53 -0700
commit171695f2abca44894f48e90401b0ebb46035893f (patch)
treeeb3411ade8cd4ea263ba6ea2720f0851a200f1ab /tools/perf/scripts/python
parentc24873a651517a8a247a2f90f4ca8631747e793e (diff)
fscrypt: Move key structure and constants to uapi
This commit exposes the necessary constants and structures for a userspace program to pass filesystem encryption keys into the keyring. The fscrypt_key structure was already part of the kernel ABI, this change just makes it so programs no longer have to redeclare these structures (like e4crypt in e2fsprogs currently does). Note that we do not expose the other FS_*_KEY_SIZE constants as they are not necessary. Only XTS is supported for contents_encryption_mode, so currently FS_MAX_KEY_SIZE bytes of key material must always be passed to the kernel. This commit also removes __packed from fscrypt_key as it does not contain any implicit padding and does not refer to an on-disk structure. Signed-off-by: Joe Richey <joerichey@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions