aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-10-27 14:00:42 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-12-27 09:36:14 +0100
commitff91beca5bec550a7a16d9dfe2fd3f9210fbb06c (patch)
tree6fbc1b3bfbb007c7a93020f229a03b031dbb96e6
parent29806cc80e59db6cd7b8c91276e8e48fddb2ef46 (diff)
downloadman-pages-ff91beca5bec550a7a16d9dfe2fd3f9210fbb06c.tar.gz
keyctl.2: ERRORS: add EINVAL error case for KEYCTL_SEARCH
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/keyctl.214
1 files changed, 14 insertions, 0 deletions
diff --git a/man2/keyctl.2 b/man2/keyctl.2
index 2f3e7c4530..2c91e63ca2 100644
--- a/man2/keyctl.2
+++ b/man2/keyctl.2
@@ -1470,6 +1470,20 @@ and an invalid permission bit was specified in
.B EINVAL
.I operation
was
+.BR KEYCTL_SEARCH
+and the size of the description in
+.IR arg4
+(including the terminating null byte) exceeded 4096 bytes.
+size of the string (including the terminating null byte) specified in
+.I arg3
+(the key type)
+or
+.I arg4
+(the key description)
+exceeded the limit (32 bytes and 4096 bytes respectively).
+.B EINVAL
+.I operation
+was
.B KEYCTL_DH_COMPUTE
and the buffer size provided is not enough to hold the result.
Provide 0 as a buffer size in order to obtain the minimum buffer size.