Giter Site home page Giter Site logo

Comments (11)

rhatdan avatar rhatdan commented on July 18, 2024

Could you try to reinstall container-selinux, I think something blew up during the installation.

sudo dnf reinstall container-selinux -y

from container-selinux.

penn5 avatar penn5 commented on July 18, 2024

Could you try to reinstall container-selinux, I think something blew up during the installation.

sudo dnf reinstall container-selinux -y

Forgot to mention that I already did 😅

If you give me a few minutes I'll verify the issue is also present on another machine that was clean installed two days ago.

from container-selinux.

penn5 avatar penn5 commented on July 18, 2024

I'm encountering the same issue on another machine. Both are Fedora 38 Workstation, this time it was a clean install two days ago. Both of them have got a GitLab Runner on them, but it's running in its own user account and has no sepolicy (I installed it myself, the only things I added are user accounts and systemd units running podman under those users, so it shouldn't be interfering).
The issue still occurs after reinstalling container-selinux on the other machine, too.

from container-selinux.

penn5 avatar penn5 commented on July 18, 2024

Right, so it works fine in a Fedora 38 live ISO in a VM (using container-selinux 2.209.0), with the exception that CAP_SYS_CHROOT is disabled by default, so I had to pass --cap-add=CAP_SYS_CHROOT to podman. I'm now going to add some storage to the VM and try installing to see if it works in an installed environment.
Update: It also works in the installed environment, with container-selinux 2.209.0. I'll try installing updates, maybe this is a regression (more likely a configuration issue on my machine, though idk how it arose).

from container-selinux.

rhatdan avatar rhatdan commented on July 18, 2024

Yes CAP_SYS_CHROOT should come back on updates, make sure you fully update the system.

from container-selinux.

penn5 avatar penn5 commented on July 18, 2024

Like you said, updating brought back CAP_SYS_CHROOT. However, it also brought back the issue I was encountering initially, so it's either a regression or a bug in the update process. I'll try downgrading to 2.209.0.

from container-selinux.

penn5 avatar penn5 commented on July 18, 2024

Downgrading to 2.209.0 has fixed the issue, so this is a regression. Time for a binary search.

from container-selinux.

penn5 avatar penn5 commented on July 18, 2024

Using packages from https://koji.fedoraproject.org/koji/packageinfo?packageID=23542, build 2.213.0-1 works fine while 2.215.0-1 and 2.215.0-2 do not work.

from container-selinux.

penn5 avatar penn5 commented on July 18, 2024

Installing from source with make && sudo make install-policy works on 2.218.0, so it is a packaging issue.

from container-selinux.

penn5 avatar penn5 commented on July 18, 2024

You can see the bug in detection at https://kojipkgs.fedoraproject.org//packages/container-selinux/2.218.0/1.fc38/data/logs/noarch/build.log

Basically if rhel is undefined, then 0%{?rhel} <= 9 evaluates to true because 0 <= 9 (and vice versa for fedora), so one branch of the %if was always true.

from container-selinux.

dustymabe avatar dustymabe commented on July 18, 2024

Thanks @penn5 for reporting and fixing this bug. I hit it and can confirm it's now fixed.

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.