aboutsummaryrefslogtreecommitdiffstats
path: root/man2/keyctl.2
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-10-19 17:00:33 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-12-27 09:36:12 +0100
commit39b91a53ca839ede30dc7eedee4bc6e702d6a6f3 (patch)
tree99f3848d2804c7e1beb4b0f48b0dce6104baf3f8 /man2/keyctl.2
parent9f79744c9af3a1d7bb5be3593c1032351c04acd7 (diff)
downloadman-pages-39b91a53ca839ede30dc7eedee4bc6e702d6a6f3.tar.gz
keyctl.2: Simplify KEYCTL_NEGATE details
This operation is just a special case of KEYCTL_REJECT Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2/keyctl.2')
-rw-r--r--man2/keyctl.226
1 files changed, 2 insertions, 24 deletions
diff --git a/man2/keyctl.2 b/man2/keyctl.2
index a6497a9ddc..7073f80f05 100644
--- a/man2/keyctl.2
+++ b/man2/keyctl.2
@@ -781,31 +781,9 @@ via the function
.BR keyctl_instantiate (3).
.TP
.BR KEYCTL_NEGATE " (since Linux 2.6.11)"
-Negatively instantiate a partially constructed key with the ID provided in the
-.I arg2
-argument (cast to
-.IR key_serial_t ),
-setting the timeout (in seconds) to the value provided in the
-.I arg3
-argument (cast to
-.IR "unsigned int" ).
-The instantiated key will be linked to the keyring ID which is provided in the
-.I arg4
-argument (cast to
-.IR key_serial_t ).
-
-The caller must have the appropriate instantiation permit set
-(authorization key, see
-.B KEYCTL_ASSUME_AUTHORITY
-command).
-
-Negative keys are used to rate limit repeated
-.BR request_key (2)
-calls by causing them to fail with the error
-.B ENOKEY
-until the negative key expires.
+Negatively instantiate a partially constructed key.
-This is equivalent to the call
+This operation is equivalent to the call:
keyctl(KEYCTL_REJECT, arg2, arg3, ENOKEY, arg4);