KEYCTL_SET_REQKEY_KEYRING
NAMESYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
LINKING
SEE ALSO
NAME
keyctl_set_reqkey_keyring − Set the implicit destination keyring
SYNOPSIS
#include <keyutils.h>
long keyctl_set_reqkey_keyring(int reqkey_defl);
DESCRIPTION
keyctl_set_reqkey_keyring() sets the default destination for implicit key requests for the current thread and returns the old setting.
After this operation has been issued, keys acquired by implicit key requests, such as might be performed by open() on an AFS or NFS filesystem, will be linked by default to the specified keyring by this function.
The valid
values of reqkey_defl are:
KEY_REQKEY_DEFL_NO_CHANGE
This makes no change to the current setting.
KEY_REQKEY_DEFL_THREAD_KEYRING
This makes the thread-specific keyring the default destination.
KEY_REQKEY_DEFL_PROCESS_KEYRING
This makes the process-specific keyring the default destination.
KEY_REQKEY_DEFL_SESSION_KEYRING
This makes the session keyring the default destination.
KEY_REQKEY_DEFL_USER_KEYRING
This makes the UID-specific keyring the default destination.
KEY_REQKEY_DEFL_USER_SESSION_KEYRING
This makes the UID-specific session keyring the default destination.
KEY_REQKEY_DEFL_DEFAULT
This selects the default behaviour which is to use the thread-specific keyring if there is one, otherwise the process-specific keyring if there is one, otherwise the session keyring if there is one, otherwise the UID-specific session keyring.
This setting is inherited across fork() and exec().
RETURN VALUE
On success keyctl_set_reqkey_keyring() returns 0. On error, the value -1 will be returned and errno will have been set to an appropriate error.
ERRORS
EINVAL |
The value of reqkey_defl is invalid. |
LINKING
This is a library function that can be found in libkeyutils. When linking, -lkeyutils should be specified to the linker.
SEE ALSO
keyctl(1),
add_key(2),
keyctl(2),
request_key(2),
keyctl(3),
request-key(8),
keyutils(7),
keyrings(7)
More Linux Commands
manpages/XtAppGetErrorDatabase.3.html
XtAppGetErrorDatabase(3) - obtain error database (Man Page)
The XtAppGetErrorDatabase function returns the address of the error database. The Intrinsics do a lazy binding of the error database and do not merge in the dat
manpages/fmaxf.3.html
fmaxf(3) - determine maximum of two floating-point numbers
These functions return the larger value of x and y. RETURN VALUE These functions return the maximum of x and y. If one argument is a NaN, the other argument is
manpages/XF86VidModeGetGammaRampSize.3.html
XF86VidModeGetGammaRampSize(3) - Extension library for the X
These functions provide an interface to the server extension XFree86-VidModeExtension which allows the video modes to be queried and adjusted dynamically and mo
manpages/XeviQueryExtension.3.html
XeviQueryExtension(3) - X Extended Visual Information functi
The X11 Extended Visual Information extension (EVI) allows a client to determine information about core X visuals beyond what the core protocol provides. The EV
manpages/nice.1.html
nice(1) - run a program with modified scheduling priority...
Run COMMAND with an adjusted niceness, which affects process scheduling. With no COMMAND, print the current niceness. Niceness values range from -20 (most favor
manpages/Tk_GetAnchorFromObj.3.html
Tk_GetAnchorFromObj(3) - translate between strings and ancho
Tk_GetAnchorFromObj places in *anchorPtr an anchor position (enumerated type Tk_Anchor) corresponding to objPtrs value. The result will be one of TK_ANCHOR_N, T
manpages/pattern.3menu.html
pattern(3menu) - get and set a menu's pattern buffer........
Every menu has an associated pattern match buffer. As input events that are printable characters come in, they are appended to this match buffer and tested for
manpages/podofogc.1.html
podofogc(1) Garbage collection in a PDF file. (Man Page)....
podofogc is one of the command line tools from the PoDoFo library that provide several useful operations to work with PDF files. It can perform a garbage collec
manpages/XmbufGetBufferAttributes.3.html
XmbufGetBufferAttributes(3) - X multibuffering functions....
The application programming library for the X11 Double-Buffering, Multi-Buffering, and Stereo Extension contains the interfaces described below. With the except
manpages/postlog.1.html
postlog(1) - Postfix-compatible logging utility (Man Page)
The postlog(1) command implements a Postfix-compatible logging interface for use in, for example, shell scripts. By default, postlog(1) logs the text given on t
manpages/tcpdchk.8.html
tcpdchk(8) - tcp wrapper configuration checker (Man Page)...
tcpdchk examines your tcp wrapper configuration and reports all potential and real problems it can find. The program examines the tcpd access control files (by
manpages/asn1_octet_der.3.html
asn1_octet_der(3) - API function (Library - Linux man page)
Creates a length-value DER encoding for the input data. The DER encoding of the input data will be placed in the der variable. Note that the OCTET STRING tag is
