GithubHelp home page GithubHelp logo

Comments (7)

rhatdan avatar rhatdan commented on June 25, 2024

Sure, I have no problem doing that.
Would you like to open a PR?

from container-selinux.

rhatdan avatar rhatdan commented on June 25, 2024

BTW What container engine are you interested in?

from container-selinux.

a-palchikov avatar a-palchikov commented on June 25, 2024

@rhatdan It's a custom engine built directly with libcontainer. I've been working on SELinux support and, being a total noob, have to consider all options. The problem with our use-case is that systemd runs quite a few services (instead of simpler case of a single service) so a way to confine all of them is still unclear to me.

I've first looked into labeling the rootfs entirely with the host rules but ran into major issues that would amount to a lot of SELinux configuration to make this work. Additionally, I've never found a way to do away with the ambiguity of having two etc_t, var_t, etc. without giving the binary the permissions to manage the content on host but only inside of rootfs.

So, my next idea is to tailor as much as possible from this project, hence I wondered if it was possible to re-use the policy without too much duplication while still being open for changes.

from container-selinux.

rhatdan avatar rhatdan commented on June 25, 2024

I just pushed a new version of container-selinux. Which includes the container_runtime_domain attribute.
You can create a type with the interface
container_runtime_domain_template(mycontainer_runtime)

This will create a myconfiner_runtime_t type that should allow you to launch containers and extend the type.

Please try it out.

from container-selinux.

rhatdan avatar rhatdan commented on June 25, 2024

@wrabcak FYI

from container-selinux.

a-palchikov avatar a-palchikov commented on June 25, 2024

@rhatdan Thanks a lot!

from container-selinux.

wrabcak avatar wrabcak commented on June 25, 2024

Great idea @a-palchikov @rhatdan, AFAIK there is no need to do anything in selinux-policy.

Thank you for heads up!
Lukas

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.