Skip to contentSkip to conversation

docs: crypto: Fix parameters order for keyctl()

PATCH New Anatol Pomozov 1 participant 1 message Aug 25, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: crypto: Fix parameters order for keyctl()

key is the second parameter, keyring is the third one.

---
 Documentation/security/keys/core.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/security/keys/core.rst +1 -1
index aa0081685ee1..59f752bdfc47 100644
@@ -604,7 +604,7 @@ The keyctl syscall functions are:
 
   *  Unlink a key or keyring from another keyring::
 
-	long keyctl(KEYCTL_UNLINK, key_serial_t keyring, key_serial_t key);
+	long keyctl(KEYCTL_UNLINK, key_serial_t key, key_serial_t keyring);
 
      This function looks through the keyring for the first link to the
      specified key, and removes it if found. Subsequent links to that key are
Signature · 1 line
2.28.0