nvme: add test for authentication with dhchap keys#175
nvme: add test for authentication with dhchap keys#175hreinecke wants to merge 1 commit intolinux-blktests:masterfrom
Conversation
|
@hreinecke When I run the test case on the kernel on nvme-6.16 branch git hash bf4d87cba2d7 with the The keyctl revoke command fails with the Permission denied error. If you can think of cause of this error, please share. I tried to create a key and revoke it as below. It looks like that the write permission is not added to the key, then the revoke fails. |
The magic here is 'keyctl link'. Per default the dhchap keys are created in the .nvme keyring, which can only be accessed from the kernel. If you want to modify things in there you have to link the .nvme keyring into your 'user' keyring:
and then you can modify the keys in there. |
With the patchset 'nvme-auth: switch to use kernel keyring' the authentication code will store the authentication codes in the kernel keyring, which allows to use pre-populated keys for nvme authentication. So add a testcase for that. Signed-off-by: Hannes Reinecke <hare@suse.de>
With the latest patchset the authentication code will store the authentication secrets in the kernel keyring, so add a testcase using pre-populated keys for authentication.