projects
/
platform
/
upstream
/
cryptsetup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e600024
)
Return EPERM instead EINVAL for too long TCRYPT passphrase.
author
Milan Broz
<gmazyland@gmail.com>
Fri, 15 Feb 2013 08:52:22 +0000
(09:52 +0100)
committer
Milan Broz
<gmazyland@gmail.com>
Fri, 15 Feb 2013 08:52:22 +0000
(09:52 +0100)
lib/tcrypt/tcrypt.c
patch
|
blob
|
history
diff --git
a/lib/tcrypt/tcrypt.c
b/lib/tcrypt/tcrypt.c
index
6c0f782
..
975f916
100644
(file)
--- a/
lib/tcrypt/tcrypt.c
+++ b/
lib/tcrypt/tcrypt.c
@@
-488,7
+488,7
@@
static int TCRYPT_init_hdr(struct crypt_device *cd,
if (params->passphrase_size > TCRYPT_KEY_POOL_LEN) {
log_err(cd, _("Maximum TCRYPT passphrase length (%d) exceeded.\n"),
TCRYPT_KEY_POOL_LEN);
- return -E
INVAL
;
+ return -E
PERM
;
}
/* Calculate pool content from keyfiles */