aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.