diff options
author | 2011-11-05 13:45:08 -0400 | |
---|---|---|
committer | 2012-02-16 16:06:21 -0600 | |
commit | 4a26620df451ad46151ad21d711ed43e963c004e (patch) | |
tree | bf035ea6a656b3e19fe93bf37991632cad96d971 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | i387: fix sense of sanity check (diff) | |
download | linux-dev-4a26620df451ad46151ad21d711ed43e963c004e.tar.xz linux-dev-4a26620df451ad46151ad21d711ed43e963c004e.zip |
eCryptfs: Improve statfs reporting
statfs() calls on eCryptfs files returned the wrong filesystem type and,
when using filename encryption, the wrong maximum filename length.
If mount-wide filename encryption is enabled, the cipher block size and
the lower filesystem's max filename length will determine the max
eCryptfs filename length. Pre-tested, known good lengths are used when
the lower filesystem's namelen is 255 and a cipher with 8 or 16 byte
block sizes is used. In other, less common cases, we fall back to a safe
rounded-down estimate when determining the eCryptfs namelen.
https://launchpad.net/bugs/885744
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Reported-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions