Files
linux-stable-mirror/include/linux
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
..
2019-05-14 19:52:50 -07:00
2019-05-07 08:39:02 -06:00
2019-05-09 15:25:13 -04:00
2019-05-14 09:47:51 -07:00
2019-05-07 14:31:03 +02:00
2019-05-14 19:52:51 -07:00
2019-05-14 19:52:48 -07:00
2019-05-08 22:14:36 +02:00
2019-05-16 15:51:55 -07:00
2019-05-15 17:35:54 +01:00