From ae6e592ee0b7600ff33f1faf0f676d3c3e35e916 Mon Sep 17 00:00:00 2001 From: Cyril Brulebois Date: Wed, 27 Jan 2016 20:22:36 +0100 Subject: Fix permissions on device nodes (Closes: #812811). --- debian/changelog | 7 +++++++ 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 Wed, 27 Jan 2016 20:22:05 +0100 + debootstrap (1.0.76) unstable; urgency=medium [ Marco d'Itri ] diff --git a/functions b/functions index cd7f1ef..5c5a015 100644 --- a/functions +++ b/functions @@ -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 -- cgit v0.12