Comments (2)
This kernel module wasn't designed with filesystem name-spacing in mind, as it was started prior to docker becoming popular. You don't see /usr/local/bin/docker-entrypoint.sh
on your filesystem, because that file exists within the namespace of the docker container.
As far as allowing execution of it -- the real fix should be to the container itself. Inside docker or not, proper filesystem owernship and permissions should always be done first. It's the group writable bit on this file that's causing the problem.
Now of course in the world of docker, you have a lot of images which don't conform to proper filesystem security & other things, because people are assuming the docker does sandboxing well enough. In short, you're going to have a lot of problem running docker containers that you didn't craft yourself.
The easiest workaround I can think of is to add an option to disable checking for execution outside of the root namespace (ie; inside docker containers) to prevent collisions between TPE and running docker containers. The containers won't get the TPE protection, but the host still will.
Does that sound like an acceptable solution to you?
from tpe-lkm.
I think it should be.
from tpe-lkm.
Related Issues (20)
- Harden_symlinks not available via package? HOT 1
- Project dead? HOT 9
- Feature request - multiple values for trusted_gid HOT 6
- Possibility for 4.x kernels ? HOT 2
- extras disabled by softmode in 2.0 HOT 10
- Build failed on linux-4.11 HOT 3
- Unable to insert module, ftrace is not enabled HOT 13
- Compile failed with kernel 4.9 HOT 3
- In-tree build HOT 2
- [info] Attempt to upstream TPE HOT 13
- Can't compile on Debian/Devuan 8 HOT 6
- Random kernel panics on boot HOT 2
- Setting tpe.extras.hide_uname=1 doesn't work. HOT 3
- Lack of documentation on some TPE parameters HOT 2
- kernel: tpe: warning: cred->security was not remapped; the soften_mmap flag won't persist to child processes. HOT 1
- tpe.trusted_apps doesn't work HOT 1
- How to define trusted gid ? HOT 1
- #error "Arch not currently supported.
- user-space programs can not get the correct errno
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 tpe-lkm.