Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors labeling files during ISO build #2060

Open
frelon opened this issue Apr 30, 2024 · 0 comments
Open

Errors labeling files during ISO build #2060

frelon opened this issue Apr 30, 2024 · 0 comments
Labels
area/selinux kind/bug Something isn't working

Comments

@frelon
Copy link
Contributor

frelon commented Apr 30, 2024

elemental-toolkit version:
Main branch

CPU architecture, OS, and Version:
Linux 6.8.7-1-default #1 SMP PREEMPT_DYNAMIC (5c0cf23) x86_64 x86_64 x86_64 GNU/Linux

Describe the bug

When building an ISO I'm getting the following logs:

INFO[2024-04-30T06:51:09Z] Creating squashfs image for file /tmp/elemental-iso689147035/iso/boot/x86_64/loader/rootfs.squashfs
DEBU[2024-04-30T06:51:09Z] Running cmd: 'setfiles -i -F -r /tmp/elemental-iso689147035/rootfs /tmp/elemental-iso689147035/rootfs/etc/selinux/targeted/contexts/files/file_contexts /tmp/elemental-iso689147035/rootfs'
DEBU[2024-04-30T06:51:13Z] 'setfiles' command reported an error: exit status 255
DEBU[2024-04-30T06:51:13Z] 'setfiles' command output: setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/pasta.avx2:  Invalid argument
setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/passt:  Invalid argument
setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/passt.avx2:  Invalid argument
setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/pasta:  Invalid argument
DEBU[2024-04-30T06:51:13Z] SELinux setfiles output: setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/pasta.avx2:  Invalid argument
setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/passt:  Invalid argument
setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/passt.avx2:  Invalid argument
setfiles: Could not set context for /tmp/elemental-iso689147035/rootfs/usr/bin/pasta:  Invalid argument
WARN[2024-04-30T06:51:13Z] failed SELinux labelling at /tmp/elemental-iso689147035/rootfs: exit status 255
@frelon frelon added kind/bug Something isn't working area/selinux labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/selinux kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant