diff options
author | Cyril Brulebois <kibi@debian.org> | 2016-01-27 19:22:36 (GMT) |
---|---|---|
committer | Cyril Brulebois <kibi@debian.org> | 2016-01-27 19:22:36 (GMT) |
commit | ae6e592ee0b7600ff33f1faf0f676d3c3e35e916 (patch) | |
tree | 6968892a3e523bac4e632f73e9afdfdefd3887b7 /functions | |
parent | 623b112593caae5738802cf7bc2c490a537e82fb (diff) | |
download | debootstrap-ae6e592ee0b7600ff33f1faf0f676d3c3e35e916.zip debootstrap-ae6e592ee0b7600ff33f1faf0f676d3c3e35e916.tar.gz debootstrap-ae6e592ee0b7600ff33f1faf0f676d3c3e35e916.tar.bz2 |
Fix permissions on device nodes (Closes: #812811).
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1074,12 +1074,12 @@ setup_devices () { setup_devices_simple () { # The list of devices that can be created in a container comes from # src/core/cgroup.c in the systemd source tree. - mknod $TARGET/dev/null c 1 3 - mknod $TARGET/dev/zero c 1 5 - mknod $TARGET/dev/full c 1 7 - mknod $TARGET/dev/random c 1 8 - mknod $TARGET/dev/urandom c 1 9 - mknod $TARGET/dev/tty c 5 0 + mknod --mode=666 $TARGET/dev/null c 1 3 + mknod --mode=666 $TARGET/dev/zero c 1 5 + mknod --mode=666 $TARGET/dev/full c 1 7 + mknod --mode=666 $TARGET/dev/random c 1 8 + mknod --mode=666 $TARGET/dev/urandom c 1 9 + mknod --mode=666 $TARGET/dev/tty c 5 0 mkdir $TARGET/dev/pts/ $TARGET/dev/shm/ ln -s pts/ptmx $TARGET/dev/ptmx ln -s /proc/self/fd $TARGET/dev/fd |