]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - include/linux/key.h
keys: Add a keyctl to move a key between keyrings
[thirdparty/linux.git] / include / linux / key.h
index 1f09aad1c98c403dde2ba493428355de2335f997..612e1cf8404956838af7539ba595eae9f38e0ff2 100644 (file)
@@ -310,6 +310,11 @@ extern int key_update(key_ref_t key,
 extern int key_link(struct key *keyring,
                    struct key *key);
 
+extern int key_move(struct key *key,
+                   struct key *from_keyring,
+                   struct key *to_keyring,
+                   unsigned int flags);
+
 extern int key_unlink(struct key *keyring,
                      struct key *key);