This will allow vold to unlink keys rather than revoking them.
This also removes the keyctl_revoke() definition for now, to discourage
any further (mis)use in the context of ext4 encryption.
Change-Id: Ic94329040f77ffbe2415287fe1202fa61e8a006b
size_t plen,
key_serial_t ringid);
-long keyctl_revoke(key_serial_t id);
+long keyctl_unlink(key_serial_t key, key_serial_t keyring);
long keyctl_setperm(key_serial_t id, int permissions);
return syscall(__NR_add_key, type, description, payload, plen, ringid);
}
-long keyctl_revoke(key_serial_t id)
+long keyctl_unlink(key_serial_t key, key_serial_t keyring)
{
- return keyctl(KEYCTL_REVOKE, id);
+ return keyctl(KEYCTL_UNLINK, key, keyring);
}
long keyctl_setperm(key_serial_t id, int permissions)