add_key.2: Add notes on libkeyutils wrapper function

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-10-21 09:42:23 +02:00
parent 6430ef0ab8
commit 59d15a1c5c
1 changed files with 8 additions and 7 deletions

View File

@ -19,6 +19,8 @@ add_key \- add a key to the kernel's key management facility
.BI " const void *" payload ", size_t " plen ,
.BI " key_serial_t " keyring ");"
.fi
No glibc wrapper is provided for this system call; see NOTES.
.SH DESCRIPTION
.BR add_key ()
creates or updates a key of the given
@ -121,13 +123,12 @@ This system call first appeared in Linux 2.6.11.
.SH CONFORMING TO
This system call is a nonstandard Linux extension.
.SH NOTES
Although this is a Linux system call, it is not present in
.I libc
but can be found rather in
.IR libkeyutils .
When linking,
.B -lkeyutils
should be specified to the linker.
No wrapper for this system call is provided in glibc.
A wrapper is provided in the
.IR libkeyutils
package.
When employing the wrapper in that library, link with
.IR \-lkeyutils .
.SH SEE ALSO
.BR keyctl (1),
.BR keyctl (2),