Giter VIP home page Giter VIP logo

Comments (2)

kyle-walker avatar kyle-walker commented on May 22, 2024

This seems to be due to the default SELinux policy for a Fedora system which includes:

$ sudo semanage fcontext -l | grep ptmx
/dev/ptmx character device system_u:object_r:ptmx_t:s0

This omits the Symlink that replaces the character device. The following resolves the condition in my testing:

$ sudo semanage fcontext -a -f l -t ptmx_t /dev/ptmx

I would recommend:

$ diff -up docker.fc.bak docker.fc
--- docker.fc.bak 2016-03-08 11:33:38.894580384 -0500
+++ docker.fc 2016-03-08 11:33:52.348740405 -0500
@@ -1,5 +1,7 @@
/root/.docker gen_context(system_u:object_r:docker_home_t,s0)

+/dev/ptmx -l gen_context(system_u:object_r:ptmx_t:s0)
+
/usr/bin/docker -- gen_context(system_u:object_r:docker_exec_t,s0)

/usr/lib/systemd/system/docker.service -- gen_context(system_u:object_r:docker_unit_file_t,s0)

Ninja edit>
Had to edit the above so that the correct "ptmx_t" context was included in the patch.

  • Kyle

from runc.

AkihiroSuda avatar AkihiroSuda commented on May 22, 2024

moby/moby#21808 is hitting this issue again.

#96 (comment) introduced setupDev := len(config.Devices) != 0 for this issue.

if err := setupPtmx(config, console); err != nil {

But I'm not sure there is any path that sets setupDev to false, because config.Devices seems to be always set to non-empty(3baae2d, #536) in spec_linux.go: createDevices().

from runc.

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.