Eric Biggers
2cbadadcfd
fscrypt: define fscrypt_fname_alloc_buffer() to be for presented names
...
Previously fscrypt_fname_alloc_buffer() was used to allocate buffers for
both presented (decrypted or encoded) and encrypted filenames. That was
confusing, because it had to allocate the worst-case size for either,
e.g. including NUL-padding even when it was meaningless.
But now that fscrypt_setup_filename() no longer calls it, it is only
used in the ->get_link() and ->readdir() paths, which specifically want
a buffer for presented filenames. Therefore, switch the behavior over
to allocating the buffer for presented filenames only.
Signed-off-by: Eric Biggers <ebiggers@google.com >
Signed-off-by: Theodore Ts'o <tytso@mit.edu >
2018-01-11 23:30:08 -05:00
..
2017-12-02 11:21:31 +00:00
2017-11-26 14:39:20 -08:00
2017-11-22 20:46:06 -10:00
2017-11-22 20:46:06 -10:00
2017-12-14 16:00:49 -08:00
2017-11-17 20:04:24 -08:00
2017-11-27 16:45:11 -05:00
2017-12-07 14:32:30 -05:00
2017-11-17 16:10:01 -08:00
2017-11-23 10:56:35 +01:00
2017-11-22 21:40:54 +01:00
2017-11-17 16:10:01 -08:00
2017-11-17 16:10:01 -08:00
2017-12-12 13:22:10 +01:00
2017-12-12 12:38:51 +01:00
2017-12-14 16:00:49 -08:00
2017-11-28 15:24:02 +01:00
2017-12-05 10:31:32 -08:00
2017-11-29 18:40:43 -08:00
2018-01-11 23:30:08 -05:00
2018-01-11 23:30:08 -05:00
2018-01-11 23:30:08 -05:00
2017-11-17 14:58:01 -08:00
2017-11-17 16:10:02 -08:00
2017-11-29 18:40:42 -08:00
2017-11-28 16:56:26 +01:00
2017-12-14 16:00:48 -08:00
2017-11-17 16:10:04 -08:00
2017-11-17 14:58:01 -08:00
2017-12-17 12:52:34 +01:00
2017-11-17 16:10:01 -08:00
2017-11-17 16:10:04 -08:00
2017-12-04 20:51:12 +01:00
2017-11-29 10:30:13 -08:00
2017-11-17 16:10:04 -08:00
2017-11-17 16:10:04 -08:00
2017-11-21 16:35:54 -08:00
2017-12-05 21:16:43 +01:00
2017-12-01 13:09:40 -08:00
2017-12-12 12:38:51 +01:00
2017-11-29 18:40:43 -08:00
2017-11-17 20:21:44 -08:00
2017-11-29 18:40:42 -08:00
2017-11-24 01:37:35 +09:00
2017-11-24 01:37:35 +09:00
2017-11-17 14:18:00 -08:00
2017-11-17 14:18:00 -08:00
2017-11-17 16:10:00 -08:00
2017-11-18 20:37:12 -05:00
2017-12-14 16:00:49 -08:00
2017-11-17 16:10:00 -08:00
2017-12-06 14:55:05 -06:00
2017-12-05 15:02:40 +01:00
2017-11-17 16:10:04 -08:00
2017-11-17 16:10:04 -08:00
2017-11-17 16:10:03 -08:00
2017-12-11 14:32:56 +01:00
2017-11-21 05:28:13 -10:00
2017-12-11 10:52:23 -05:00
2017-11-17 20:14:10 -08:00
2017-11-17 16:10:01 -08:00
2017-12-14 16:00:48 -08:00
2017-12-05 18:06:09 -05:00
2017-11-17 16:10:04 -08:00
2017-12-12 11:24:01 +01:00
2017-12-15 11:44:59 -08:00
2017-11-28 16:00:50 +01:00
2017-11-30 09:15:53 -05:00
2017-12-12 11:24:01 +01:00
2017-12-12 11:24:01 +01:00
2017-12-14 16:00:48 -08:00
2017-11-18 20:37:12 -05:00
2017-11-17 16:10:03 -08:00
2017-12-06 19:31:39 +01:00
2017-12-08 10:07:02 -05:00
2017-11-21 16:35:54 -08:00
2017-11-17 14:58:01 -08:00
2017-12-04 07:14:30 -05:00
2017-11-24 01:37:35 +09:00
2017-11-21 16:35:54 -08:00
2017-11-21 15:46:44 -08:00