Giter Site home page Giter Site logo

Comments (5)

rhatdan avatar rhatdan commented on August 17, 2024

This looks like the overlay storage has the wrong label on it. Should be labeled container_share_t. Could you run resstorecon -Rv /var/lib/containers.

from container-selinux.

edsantiago avatar edsantiago commented on August 17, 2024

Sorry for the late reply; I couldn't get to this yesterday.

# podman rm -a; podman rmi -a   [otherwise there's way too much output to paste]
# restorecon -Rv /var/lib/containers
[ no output. Really. ]
# ls -lZd /var/lib/containers/
drwxr-xr-x. 5 root root system_u:object_r:var_lib_t:s0 4096 Nov 23 08:40 /var/lib/containers/
                                          ^^^^^^^^^ this does not look right

# podman run alpine date
Trying to pull docker.io/library/alpine...
Getting image source signatures
Copying blob 89d9c30c1d48 done
Copying config 965ea09ff2 done
Writing manifest to image destination
Storing signatures
# echo $?
127

# chcon -t container_var_lib_t /var/lib/containers
chcon: failed to change context of '/var/lib/containers' to ‘system_u:object_r:container_var_lib_t:s0’: Invalid argument

# rpm -q container-selinux
container-selinux-2.120.1-0.2.dev.gita233788.fc32.noarch

HTH

from container-selinux.

rhatdan avatar rhatdan commented on August 17, 2024

yum reinstall container-selinux

I think the post install broke.

from container-selinux.

edsantiago avatar edsantiago commented on August 17, 2024
# dnf reinstall container-selinux
...
Running scriptlet: container-selinux-2:2.120.1-0.2.dev.gita233788.fc32.noarch                                                                             1/2
libsemanage.semanage_pipe_data: Child process /usr/libexec/selinux/hll/pp failed with code: 255. (No such file or directory).
container: libsepol.policydb_read: policydb module version 20 does not match my version range 4-19
container: libsepol.sepol_module_package_read: invalid module in module package (at section 0)
container: Failed to read policy package
libsemanage.semanage_direct_commit: Failed to compile hll files into cil files.
 (No such file or directory).
/usr/sbin/semodule:  Failed!

from container-selinux.

rhatdan avatar rhatdan commented on August 17, 2024

I don't believe this is still an issue.

from container-selinux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.