Giter Site home page Giter Site logo

Comments (11)

rhatdan avatar rhatdan commented on August 17, 2024 2

I am working on typebounds on Fedora right now, I will back port fixes for RHEL

from container-selinux.

wrabcak avatar wrabcak commented on August 17, 2024

@rhatdan, We need to test this on Fedora. SELinux team added support for NoNewPrivileges + SELinux so we fix this by nnp_transition type.

from container-selinux.

rhatdan avatar rhatdan commented on August 17, 2024

@cpuguy83 You are doing this with a SPC_t container, which means that you are either compiling the docker without selinux support or you are running without --selinux-enabled in the docker daemon.

from container-selinux.

cpuguy83 avatar cpuguy83 commented on August 17, 2024

@rhatdan I'm specifying this through crictl against cri-containerd, spc_t was just an example. svirt_lxc_net_t also fails in the same way... just happen to be using docker-runc as a final test to make sure I didn't mislabel the 'proper' runc.

from container-selinux.

rhatdan avatar rhatdan commented on August 17, 2024

Ok you are doing this on a RHEL or Centos system?

from container-selinux.

cpuguy83 avatar cpuguy83 commented on August 17, 2024

Adding the custom typebounds rule shown in your blog works

Ok you are doing this on a RHEL or Centos system?

CentOS

from container-selinux.

rhatdan avatar rhatdan commented on August 17, 2024

Ok it turns out that there are some big fixes for SELinux policy coming in RHEL7.5 which will make this a lot easier to handle. I just updated container-selinux for Fedora 27 and Rawhide, to use the new nnp_transition feature. But for now this is broken on Centos and RHEL. You can add the typebounds to make it work.

from container-selinux.

cpuguy83 avatar cpuguy83 commented on August 17, 2024

Thanks, Dan!
What are the implications of adding the necessary typebounds rules?

from container-selinux.

rhatdan avatar rhatdan commented on August 17, 2024

@cpuguy83 There is not security issue with adding them. They basically just allow the transition, so that you are allowed to run spc_t or svirt_lxc_net_t (container_t) on your system. I will update the next container-selinux for RHEL with the type bounds allowed, and see if it compiles correctly.

from container-selinux.

rhatdan avatar rhatdan commented on August 17, 2024

This is now fixed in Fedora and should be fixed in the next container-selinux update in RHEL.

from container-selinux.

cpuguy83 avatar cpuguy83 commented on August 17, 2024

Thanks!

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.