Skip to content
Commit 29a98c1c authored by Eric Biggers's avatar Eric Biggers
Browse files

fscrypt: use ENOPKG when crypto API support missing



Return ENOPKG rather than ENOENT when trying to open a file that's
encrypted using algorithms not available in the kernel's crypto API.

This avoids an ambiguity, since ENOENT is also returned when the file
doesn't exist.

Note: this is the same approach I'm taking for fs-verity.

Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent a4d14e91
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment