-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
SELinux issues with podman build --platform linux/arm64 #25318
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
how about providing the contents of |
It's a pretty simple one @baude. Here yah go. FROM ubuntu:24.04
ARG DEBIAN_FRONTEND=noninteractive
ENV DEB_BUILD_OPTIONS=nocheck
RUN sed -i -- 's/# deb-src/deb-src/g' /etc/apt/sources.list
RUN echo 'man-db man-db/auto-update boolean false' | debconf-set-selections
RUN set -ex \
&& apt-get update \
&& apt-get upgrade -y --no-install-recommends \
&& apt-get install -y --no-install-recommends \
build-essential \
cdbs \
devscripts \
equivs \
fakeroot \
uidmap \
&& apt-mark minimize-manual -y \
&& apt-get autopurge -y \
&& apt-get clean
RUN rm /etc/apt/apt.conf.d/docker-clean
RUN rm -rf /tmp/* /var/tmp/
RUN ln -s /tmp /var/tmp |
Using the provided Containerfile and podman from main, i was not able to reproduce this:
Here is the build log. |
That is very weird. This only happens when I try to build a container. Running a contianer with a different arch works fine. jdoss@hadron:~$ podman run --rm --arch arm64 --privileged ubi9/ubi uname -m
aarch64
jdoss@hadron:~$ getenforce
Enforcing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
I am tasked with building some packages for arm64 and while I can do the following just fine:
I cannot use
podman build
without getting the following SELinux denials.podman build --platform linux/arm64 -t container-deb-builder:24.04 -f Dockerfile-ubuntu-24.04 .
Disabling SELinux allows for the container to be built.
Steps to reproduce the issue
See above.
Describe the results you received
Describe the results you received
Describe the results you expected
A built arm64 container.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: