Skip to content

nvme/082: add test for authentication with dhchap keys - #278

Open
hreinecke wants to merge 1 commit into
linux-blktests:masterfrom
hreinecke:dhchap-keys.v2
Open

hreinecke wants to merge 1 commit into
linux-blktests:masterfrom
hreinecke:dhchap-keys.v2

Conversation

@hreinecke

Copy link
Copy Markdown
Contributor

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.

Supersedes: #175

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>
Comment thread tests/nvme/082

keyctl link %:.nvme @u

hostkey="$(nvme gen-dhchap-key -n "${def_subsysnqn}" --hmac=1 2> /dev/null)"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to use nvme-cli 3 keys gen-kxchap-secret commands. There is a backwards compatibility layer taking care, so it also runs with nvme-cli 2.

@kawasaki

Copy link
Copy Markdown
Collaborator

I took a glance in the commit, and found it should have

  _have_program keyctl

in requires(). IOW, the test case depends on the keyctl command and keyutils package. If nvme-cli can replace all of the keyctl, it will be the better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants