-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Building template in selinux-enabled DispVM fails #9219
Building template in selinux-enabled DispVM fails #9219
Comments
I think the problem is that the cache isn’t properly labeled. PR coming. |
This uses the contexts from the host, which won't be the same as those of the distribution, but are guaranteed to be available and will hopefully be similar. Proper contexts will be set at the end of the build. Fixes: QubesOS/qubes-issues#9219
I doubt it, the cached chroot was not involved. The failing
|
This is definitely not a Qubes OS issue, then. I suspect it is either a bug in the script or an upstream issue. I recommend reporting this as a bug and asking for help from the Fedora developers. |
I suspect it is a qubes-builder issue. Ideally, a template filesystem created this way should be appropriately labeled according to the loaded policy, instead of having unlabeled files that then rpmdb can't access. |
True, but this is still something that the Fedora developers would be better able to help with, since the issue doesn’t require Qubes OS to reproduce. |
This actually gave me an idea:
|
How to file a helpful issue
Qubes OS release
R4.2
Brief summary
Building Fedora 40 template fails in DispVM that has SELinux enabled
Steps to reproduce
./qb -t fedora-40 template all
Expected behavior
Biuilding template works
Actual behavior
Switching to permissive work helps. Then I see this logged:
The text was updated successfully, but these errors were encountered: