aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/keys.txt
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2006-01-08 04:02:43 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-08 23:13:53 -0500
commit017679c4d45783158dba1dd6f79e712c22bb3d9a (patch)
treea536f0b581eacd88a64077f5ff15b29d23fc6405 /Documentation/keys.txt
parentcd140a5c1f456f50897af4a2e9a23d228a5fe719 (diff)
[PATCH] keys: Permit key expiry time to be set
Add a new keyctl function that allows the expiry time to be set on a key or removed from a key, provided the caller has attribute modification access. Signed-off-by: David Howells <dhowells@redhat.com> Cc: Trond Myklebust <trond.myklebust@fys.uio.no> Cc: Alexander Zangerl <az@bond.edu.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation/keys.txt')
-rw-r--r--Documentation/keys.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/Documentation/keys.txt b/Documentation/keys.txt
index 6304db59bfe4..c17c4ca74302 100644
--- a/Documentation/keys.txt
+++ b/Documentation/keys.txt
@@ -498,7 +498,7 @@ The keyctl syscall functions are:
498 keyring is full, error ENFILE will result. 498 keyring is full, error ENFILE will result.
499 499
500 The link procedure checks the nesting of the keyrings, returning ELOOP if 500 The link procedure checks the nesting of the keyrings, returning ELOOP if
501 it appears to deep or EDEADLK if the link would introduce a cycle. 501 it appears too deep or EDEADLK if the link would introduce a cycle.
502 502
503 503
504 (*) Unlink a key or keyring from another keyring: 504 (*) Unlink a key or keyring from another keyring:
@@ -628,6 +628,19 @@ The keyctl syscall functions are:
628 there is one, otherwise the user default session keyring. 628 there is one, otherwise the user default session keyring.
629 629
630 630
631 (*) Set the timeout on a key.
632
633 long keyctl(KEYCTL_SET_TIMEOUT, key_serial_t key, unsigned timeout);
634
635 This sets or clears the timeout on a key. The timeout can be 0 to clear
636 the timeout or a number of seconds to set the expiry time that far into
637 the future.
638
639 The process must have attribute modification access on a key to set its
640 timeout. Timeouts may not be set with this function on negative, revoked
641 or expired keys.
642
643
631=============== 644===============
632KERNEL SERVICES 645KERNEL SERVICES
633=============== 646===============