[UBUNTU 20.04] zkey: Fix listing of keys on file systems reporting DT_UNKNOWN.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu on IBM z Systems |
Fix Released
|
High
|
Canonical Foundations Team | ||
s390-tools (Ubuntu) |
Fix Released
|
Undecided
|
Skipper Bug Screeners | ||
Bionic |
Invalid
|
Undecided
|
Unassigned | ||
Eoan |
Won't Fix
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Skipper Bug Screeners |
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
type in d_type will return DT_UNKNOWN instead. zkey skips
Solution: Also consider directory entries with d_type = DT_UNKNOWN.
Reproduction: Use zkey with a zkey repository directory located in a file
list the key s with 'zkey list'.
the file type, but existing XFS file systems might not. To
file type, use 'mkfs.xfs -f -m crc=0 -n ftype=0' to create
the file system.
Upstream-ID: 0de533aef9def92
Component: s390-tools
Need to be applied to all distro in service
tags: | added: architecture-s39064 bugnameltc-183137 severity-high targetmilestone-inin2004 |
Changed in ubuntu: | |
assignee: | nobody → Skipper Bug Screeners (skipper-screen-team) |
affects: | ubuntu → s390-tools (Ubuntu) |
Changed in ubuntu-z-systems: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in ubuntu-z-systems: | |
assignee: | nobody → Canonical Foundations Team (canonical-foundations) |
no longer affects: | ubuntu-z-systems/ubuntu-18.04 |
Changed in s390-tools (Ubuntu Bionic): | |
status: | New → Triaged |
Changed in s390-tools (Ubuntu Eoan): | |
status: | New → Triaged |
Changed in s390-tools (Ubuntu Focal): | |
status: | New → Triaged |
Changed in s390-tools (Ubuntu Focal): | |
status: | Triaged → Fix Committed |
Changed in ubuntu-z-systems: | |
status: | Triaged → In Progress |
summary: |
- [UBUNTU] zkey: Fix listing of keys on file systems reporting DT_UNKNOWN. + [UBUNTU 20.04] zkey: Fix listing of keys on file systems reporting + DT_UNKNOWN. |
Changed in s390-tools (Ubuntu Eoan): | |
status: | Invalid → Won't Fix |
tags: | added: fr-882 |
Changed in s390-tools (Ubuntu Bionic): | |
status: | Incomplete → Invalid |
The patch is not in s390-tools 2.12, so its needed to apply it on top of 2.12 that is the target for focal. zkey is also supported on eoan, but not on older releases like xenial or bionic.
Hence I've added the relevant targets.