jhnc-oss / images

Collection of Podman / Docker images.
MIT License
3 stars 0 forks source link

"Operation not permitted" on Fedora 40 #57

Closed offa closed 3 months ago

offa commented 3 months ago

Some image builds fail to due to tar "Operation not permitted" errors:

tar: lib: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: boot: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: lib/jansi-native/Windows/arm64: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: lib/jansi-native/Windows/x86: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: lib/jansi-native/Windows/x86_64: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: lib/jansi-native/Windows: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: lib/jansi-native: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: conf/logging: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: conf: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: lib/ext/hazelcast: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: lib/ext/redisson: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: lib/ext: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: lib/jansi-native: Cannot change mode to rwx------: Operation not permitted
tar: Exiting with failure status due to previous errors

This is a known issue of the Podman version used by Github Actions CI (podman version 3.4.4): https://github.com/containers/podman/issues/21012

Newer Podman versions have fixed this, thus not reproducible locally.

offa commented 3 months ago

Workaround:

Build with --security-opt seccomp=unconfined.

Remove once a newer Podman version is available on CI builds.

offa commented 3 months ago

Ubuntu 24.04 based images ship Podman 4.9.3: https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2404-Readme.md