Comments (11)
I am working on typebounds on Fedora right now, I will back port fixes for RHEL
from container-selinux.
@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.
@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.
@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.
Ok you are doing this on a RHEL or Centos system?
from container-selinux.
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.
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.
Thanks, Dan!
What are the implications of adding the necessary typebounds
rules?
from container-selinux.
@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.
This is now fixed in Fedora and should be fixed in the next container-selinux update in RHEL.
from container-selinux.
Thanks!
from container-selinux.
Related Issues (20)
- Branch protection for main branch HOT 3
- gating tests? HOT 2
- iptables-restore cannot read file from inside a container HOT 6
- allow user_u to work with containers HOT 8
- Packit: Use packit for bumping official fedora package HOT 1
- CI: check for long-running relabels HOT 1
- [packit] Propose downstream failed for release v2.213.0 HOT 3
- Issues on Fedora (container-selinux-2.211.1) with container_domain_template HOT 5
- Issue on RHEL with iscsiadm on v2.205 HOT 4
- user_namespace { create } rule not working HOT 11
- Concern with use of dac_override in home_container.cil HOT 3
- `avc: denied { shutdown }` when using socket activation with rootless podman quadlet HOT 3
- dri_device_t cannot be accessed correctly by pods using device plugins. HOT 12
- Add support for `rpm --verify` HOT 2
- container_init_t does not possess ptrace process context HOT 13
- CRI-O CI broken due to SELinux AVC Denials with latest runc (main branch) build HOT 20
- systemd crashes while attempting to start under container_user_r role HOT 11
- /etc/kubernetes filetrans? HOT 1
- container_user_u issues related to `podmansh` HOT 2
- Supprot for RHEL 9 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from container-selinux.