Skip to content

Commit 01886f5

Browse files
committed
rpm: disable seccomp to prevent tar EPERM (Fedora 40 ppc64le on Debian)
commit 07b5d90 disabled seccomp for the deb-builds because `chmod` failed tar was failing with an EPERM (Ubuntu 24.04 armhf on 20.04 host). It looks like the same problem happens when running Fedora 40 on a Debian bookworm host on ppc64le. That issue was confirmed to be related to `fchmodat2(2)`, which is a new syscall that's not supported on the host, and therefore gets the seccomp's default EPERM; fchmodat2(AT_FDCWD, "docker", 0775, AT_SYMLINK_NOFOLLOW) = -1 EPERM (Operation not permitted) tar: docker: Cannot change mode to rwxrwxr-x: Operation not permitted tar: Exiting with failure status due to previous errors Ultimately we need to update the libseccomp profile to use ENOSYS (see moby ticket 42871) to allow it to degrade gracefully; fchmodat2(AT_FDCWD, "docker", 0775, AT_SYMLINK_NOFOLLOW) = -1 ENOSYS (Function not implemented) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent f1905fd commit 01886f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rpm/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ RPMBUILD_FLAGS?=-ba\
4141

4242
# Additional flags may be necessary at some point
4343
RUN_FLAGS=
44+
45+
# FIXME(thaJeztah): disabling seccomp to handle (ppc64le) tar "chown / chmod"
46+
# failing when running in a Fedora 40 container on a Debian bookworm host;
47+
# see https://github.com/docker/docker-ce-packaging/issues/1012 and
48+
# https://github.com/docker/docker-ce-packaging/pull/1006#issuecomment-2006878743
4449
RUN?=docker run --rm \
50+
--security-opt seccomp=unconfined \
4551
-e PLATFORM \
4652
-v $(CURDIR)/rpmbuild/SOURCES:/root/rpmbuild/SOURCES:ro \
4753
-v $(CURDIR)/rpmbuild/$@/RPMS:/root/rpmbuild/RPMS \

0 commit comments

Comments
 (0)