text
stringlengths
0
234
argument is ignored.
.ip
this operation is exposed by
.i libkeyutils
via the function
.br keyctl_negate (3).
.tp
.br keyctl_set_reqkey_keyring " (since linux 2.6.13)"
set the default keyring to which implicitly requested keys
will be linked for this thread, and return the previous setting.
implicit key requests are those made by internal kernel components,
.\" i.e., calls to the kernel's internal request_key() interface,
.\" which is distinct from the request_key(2) system call (which
.\" ultimately employs the kernel-internal interface).
such as can occur when, for example, opening files
on an afs or nfs filesystem.
setting the default keyring also has an effect when requesting
a key from user space; see
.br request_key (2)
for details.
.ip
the
.i arg2
argument (cast to
.ir int )
should contain one of the following values,
to specify the new default keyring:
.rs
.tp
.br key_reqkey_defl_no_change
don't change the default keyring.
this can be used to discover the current default keyring
(without changing it).
.tp
.br 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,
otherwise the user-specific keyring.
.tp
.br key_reqkey_defl_thread_keyring
use the thread-specific keyring
.rb ( thread\-keyring (7))
as the new default keyring.
.tp
.br key_reqkey_defl_process_keyring
use the process-specific keyring
.rb ( process\-keyring (7))
as the new default keyring.
.tp
.br key_reqkey_defl_session_keyring
use the session-specific keyring
.rb ( session\-keyring (7))
as the new default keyring.
.tp
.br key_reqkey_defl_user_keyring
use the uid-specific keyring
.rb ( user\-keyring (7))
as the new default keyring.
.tp
.br key_reqkey_defl_user_session_keyring
use the uid-specific session keyring
.rb ( user\-session\-keyring (7))
as the new default keyring.
.tp
.br key_reqkey_defl_requestor_keyring " (since linux 2.6.29)"
.\" 8bbf4976b59fc9fc2861e79cab7beb3f6d647640
use the requestor keyring.
.\" fixme the preceding explanation needs to be expanded.
.\" is the following correct:
.\"
.\" the requestor keyring is the dest_keyring that
.\" was supplied to a call to request_key(2)?
.\"
.\" david howells said: to be checked
.re
.ip
all other values are invalid.
.\" (including the still-unsupported key_reqkey_defl_group_keyring)
.ip
the arguments
.ir arg3 ,
.ir arg4 ,
and
.ir arg5
are ignored.
.ip
the setting controlled by this operation is inherited by the child of
.br fork (2)
and preserved across
.br execve (2).
.ip
this operation is exposed by
.i libkeyutils
via the function
.br keyctl_set_reqkey_keyring (3).
.tp
.br keyctl_set_timeout " (since linux 2.6.16)"