aboutsummaryrefslogtreecommitdiff
path: root/cmd/fscrypt/setup.go
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-11-07 14:20:45 -0800
committerEric Biggers <ebiggers3@gmail.com>2020-11-07 14:49:02 -0800
commitb68d603854bb38f59e77963d61ca25d92b945589 (patch)
treeddf9d51d6afe99e1a9c3334906d364d297df4f6b /cmd/fscrypt/setup.go
parent9dde51ae5a9f18a81292d4a8431e81b3869dee62 (diff)
cmd/fscrypt: fix isDirUnlockedHeuristic() on latest kernels
On an "incompletely locked" directory, isDirUnlockedHeuristic() is supposed to return true, but on Linux v5.10-rc1 and later it returns false since now creating a subdirectory fails rather than succeeds. This change was intentional, so make isDirUnlockedHeuristic() apply a second heuristic too: also return true if any filenames in the directory don't appear to be valid no-key names. This fixes cli-tests/t_v1_encrypt on Linux v5.10-rc1 and later.
Diffstat (limited to 'cmd/fscrypt/setup.go')
0 files changed, 0 insertions, 0 deletions