diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-02-24 23:14:50 +0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-03-02 01:50:31 +0400 |
commit | 59e6b9c11341e3b8ac5925427c903d4eae435bd8 (patch) | |
tree | 68b39f847badedfca1476fbbf7ef6049a444f493 /include/linux/key.h | |
parent | 0cb3284b535bd5eacc287632b55150c8e5d9edc7 (diff) | |
download | linux-59e6b9c11341e3b8ac5925427c903d4eae435bd8.tar.xz |
Created a function for setting timeouts on keys
The keyctl_set_timeout function isn't exported to other parts of the
kernel, but I want to use it for the NFS idmapper. I already have the
key, but I wanted a generic way to set the timeout.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/key.h')
-rw-r--r-- | include/linux/key.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/key.h b/include/linux/key.h index 5253471cd2ea..be3995d1024a 100644 --- a/include/linux/key.h +++ b/include/linux/key.h @@ -276,6 +276,8 @@ static inline key_serial_t key_serial(const struct key *key) return key ? key->serial : 0; } +extern void key_set_timeout(struct key *, unsigned); + /** * key_is_instantiated - Determine if a key has been positively instantiated * @key: The key to check. |