linux/Documentation/security
David Howells ed0ac5c7ec keys: Add a keyctl to move a key between keyrings
Add a keyctl to atomically move a link to a key from one keyring to
another.  The key must exist in "from" keyring and a flag can be given to
cause the operation to fail if there's a matching key already in the "to"
keyring.

This can be done with:

	keyctl(KEYCTL_MOVE,
	       key_serial_t key,
	       key_serial_t from_keyring,
	       key_serial_t to_keyring,
	       unsigned int flags);

The key being moved must grant Link permission and both keyrings must grant
Write permission.

flags should be 0 or KEYCTL_MOVE_EXCL, with the latter preventing
displacement of a matching key from the "to" keyring.

Signed-off-by: David Howells <dhowells@redhat.com>
2019-05-30 22:44:48 +01:00
..
keys keys: Add a keyctl to move a key between keyrings 2019-05-30 22:44:48 +01:00
tpm tpm: move documentation under Documentation/security 2016-11-07 18:56:42 -07:00
credentials.rst Documentation: Use "while" instead of "whilst" 2018-11-20 09:30:43 -07:00
IMA-templates.rst doc: ReSTify IMA-templates.txt 2017-05-18 10:30:14 -06:00
index.rst doc: sctp: Merge and clean up rst files 2019-02-22 08:51:40 -07:00
LSM.rst doc: security: Add kern-doc for lsm_hooks.h 2019-02-22 08:54:09 -07:00
SCTP.rst doc: sctp: Merge and clean up rst files 2019-02-22 08:51:40 -07:00
self-protection.rst doc: self-protection: Add information about STACKLEAK feature 2018-09-04 10:35:48 -07:00