Skip to content

Fix CIs skipping filesystem, EFI secure boot and EFI capsule tests

Alper Nebi Yasak u-boot 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 6 repliesIn review
  2. v23 patches 3 repliesSuperseded
  3. v14 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Only set /boot/vmlinu* as readable.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tools: docker: Install a readable kernel for libguestfs-toolstools/docker/Dockerfile+4 -01 reply
2/3Azure: Add fuse device for test.py tests.azure-pipelines.yml+2 -11 reply
3/3Azure: Add loop devices and CAP_SYS_ADMIN for sandbox test.py tests.azure-pipelines.yml+15 -14 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchHeinrich Schuchardt
1/3A-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] Fix CIs skipping filesystem, EFI secure boot and EFI capsule tests

After my previous patch to fix filesystem tests [1] was merged, I noticed the GitLab CI was still skipping them and wanted to figure out why. In short: libguestfs tools (virt-make-fs, guestmount) fail because they need an installed kernel and the host /dev/fuse device, loop mounts need the host /dev/loop* devices, and mounting filesystems (loop and guestmount) fails because Docker containers need extra permissions to mount devices normally disabled for host security.

[1] https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

Patch #1 is meant to install a kernel into the container image that libguestfs can use, but the image will need to be regenerated manually.

Patch #2 makes virt-make-fs work, which should make these EFI tests run again. But guestmount doesn't work with this much because it needs more permissions to actually mount a filesystem.

Patch #3 makes mounting filesystems and loop devices work, which should make the filesystem tests run again. This is separate from patch #2 because the parts using guestmount can theoretically be rewritten to use guestfish which would make the filesystem tests work without this patch, and giving mount permissions to the container processes seem to be insecure. So, this patch can be dropped if you think the impact isn't worth it.

Similar changes to patch #2, #3 should be applicable to the GitLab CI and probably necessary to get the same effect, but I don't think its configuration is accessible to me.

Changes in v3:
- Only set /boot/vmlinu* as readable.

v2: https://patchwork.ozlabs.org/project/uboot/list/?series=248583

Changes in v2:
- Always pass in /dev/fuse to Azure's docker run invocation.
- Drop patch to install kernel in CI scripts

v1: https://patchwork.ozlabs.org/project/uboot/list/?series=247294

Alper Nebi Yasak (3):
tools: docker: Install a readable kernel for libguestfs-tools
Azure: Add fuse device for test.py tests
Azure: Add loop devices and CAP_SYS_ADMIN for sandbox test.py tests

 .azure-pipelines.yml    | 17 ++++++++++++++++-
 tools/docker/Dockerfile |  4 ++++
 2 files changed, 20 insertions(+), 1 deletion(-)
Signature · 1 line
2.32.0