summaryrefslogtreecommitdiffstats
path: root/security/tomoyo/file.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-06-11 18:31:05 +0200
committerJames Morris <jmorris@namei.org>2010-08-02 07:34:27 +0200
commit9156235b3427d6f01c5c95022f72f381f07583f5 (patch)
tree16df30be93847e73a3b188b98f9ef2e034d82a90 /security/tomoyo/file.c
parentTOMOYO: Update profile structure. (diff)
downloadlinux-9156235b3427d6f01c5c95022f72f381f07583f5.tar.xz
linux-9156235b3427d6f01c5c95022f72f381f07583f5.zip
KEYS: Authorise keyctl_set_timeout() on a key if we have its authorisation key
Authorise a process to perform keyctl_set_timeout() on an uninstantiated key if that process has the authorisation key for it. This allows the instantiator to set the timeout on a key it is instantiating - provided it does it before instantiating the key. For instance, the test upcall script provided with the keyutils package could be modified to set the expiry to an hour hence before instantiating the key: [/usr/share/keyutils/request-key-debug.sh] if [ "$3" != "neg" ] then + keyctl timeout $1 3600 keyctl instantiate $1 "Debug $3" $4 || exit 1 else Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: James Morris <jmorris@namei.org>
Diffstat (limited to 'security/tomoyo/file.c')
0 files changed, 0 insertions, 0 deletions