keyctl.2: ERRORS: add EINVAL error case for KEYCTL_SEARCH

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-10-27 14:00:42 +02:00
parent 29806cc80e
commit ff91beca5b
1 changed files with 14 additions and 0 deletions

View File

@ -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.