summaryrefslogtreecommitdiffstats
path: root/Documentation/mn10300
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-05-11 11:56:56 +0200
committerDavid Howells <dhowells@redhat.com>2012-05-11 11:56:56 +0200
commitfd75815f727f157a05f4c96b5294a4617c0557da (patch)
treeb2e76abf176d37b5d810b0c813b8c0219754b88c /Documentation/mn10300
parentKEYS: Do LRU discard in full keyrings (diff)
downloadlinux-fd75815f727f157a05f4c96b5294a4617c0557da.tar.xz
linux-fd75815f727f157a05f4c96b5294a4617c0557da.zip
KEYS: Add invalidation support
Add support for invalidating a key - which renders it immediately invisible to further searches and causes the garbage collector to immediately wake up, remove it from keyrings and then destroy it when it's no longer referenced. It's better not to do this with keyctl_revoke() as that marks the key to start returning -EKEYREVOKED to searches when what is actually desired is to have the key refetched. To invalidate a key the caller must be granted SEARCH permission by the key. This may be too strict. It may be better to also permit invalidation if the caller has any of READ, WRITE or SETATTR permission. The primary use for this is to evict keys that are cached in special keyrings, such as the DNS resolver or an ID mapper. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'Documentation/mn10300')
0 files changed, 0 insertions, 0 deletions