[Bug 1859018] Re: [UBUNTU 20.04] zkey: Fix listing of keys on file systems reporting DT_UNKNOWN.

Lukas Märdian 1859018 at bugs.launchpad.net
Tue Nov 17 13:31:43 UTC 2020


The 'zkey list' command does not seem to be available in Bionic. Also
the patched zkey/keystore.c file does not exist in s390-tools v2.3.0, so
it looks like this bug isn't available either:


ubuntu at juju-96c787-test-0:~$ zkey list
zkey: Invalid command 'list'
Try 'zkey --help' for more information.
ubuntu at juju-96c787-test-0:~$ zkey --help
Usage: zkey COMMAND SECURE-KEY-FILE [OPTIONS] 

Generate, re-encipher, and validate secure AES keys

COMMANDS
  GENerate	Generate a secure AES key
  REencipher	Re-encipher an existing secure AES key
  VALidate	Validate an existing secure AES key

COMMON OPTIONS
 -V, --verbose  Print additional information messages during processing
 -h, --help     Print this help, then exit
 -v, --version  Print version information, then exit

For more information use 'zkey COMMAND --help'.
ubuntu at juju-96c787-test-0:~$ zkey -v
zkey version 2.3.0-build-20191025
Copyright IBM Corp. 2017


** Changed in: s390-tools (Ubuntu Bionic)
       Status: Triaged => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to s390-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1859018

Title:
  [UBUNTU 20.04] zkey: Fix listing of keys on file systems reporting
  DT_UNKNOWN.

Status in Ubuntu on IBM z Systems:
  In Progress
Status in s390-tools package in Ubuntu:
  Fix Released
Status in s390-tools source package in Bionic:
  Incomplete
Status in s390-tools source package in Eoan:
  Won't Fix
Status in s390-tools source package in Focal:
  Fix Released

Bug description:
  Description:   zkey: Fix listing of keys on file systems reporting DT_UNKNOWN.
  Symptom:       When the zkey key repository is located in a file system that
                 does not have full support for report the file type, such as
                 XFS, the 'zkey list' command does not show any keys, although
                 keys exist in the repository.
  Problem:       The zkey list function uses scandir() to look for files in the
                 zkey key repository directory. It checks the dirent.d_type field
                 to consider only regular files, but skips all others. File
                 systems that do not have full support for returning the file
                 type in d_type will return DT_UNKNOWN instead. zkey skips
                 those directory entries and thus does not show any keys.
  Solution:      Also consider directory entries with d_type = DT_UNKNOWN.
  Reproduction:  Use zkey with a zkey repository directory located in a file
                 system that does not have full support for returning the file
                 type, such as XFS. Generate a key in the repository and then
                 list the key s with 'zkey list'.
                 Note: Newly created XFS file systems usually support returning
                 the file type, but existing XFS file systems might not. To
                 create an XFS file system that does not support returning the
                 file type, use 'mkfs.xfs -f -m crc=0 -n ftype=0' to create
                 the file system.

  Upstream-ID:   0de533aef9def920fed751c6025e4f19c4cba763

  Component:     s390-tools

  Need to be applied to all distro in service

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/1859018/+subscriptions



More information about the foundations-bugs mailing list