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 | |
parent | 623b112593caae5738802cf7bc2c490a537e82fb (diff) | |
download | debootstrap-ae6e592ee0b7600ff33f1faf0f676d3c3e35e916.zip debootstrap-ae6e592ee0b7600ff33f1faf0f676d3c3e35e916.tar.gz debootstrap-ae6e592ee0b7600ff33f1faf0f676d3c3e35e916.tar.bz2 |
Fix permissions on device nodes (Closes: #812811).
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | functions | 12 |
2 files changed, 13 insertions, 6 deletions
diff --git a/debian/changelog b/debian/changelog index ce84bd2..0a01355 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +debootstrap (1.0.77) UNRELEASED; urgency=medium + + [ Marco d'Itri ] + * Fix permissions on device nodes (Closes: #812811). + + -- Cyril Brulebois <kibi@debian.org> Wed, 27 Jan 2016 20:22:05 +0100 + debootstrap (1.0.76) unstable; urgency=medium [ Marco d'Itri ] @@ -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 |