Merge pull request #420 from hallyn/fixbusybox.1

fix busybox unpriv
This commit is contained in:
Stéphane Graber 2015-01-27 09:33:26 +00:00
commit b04c281f10

View File

@ -73,9 +73,8 @@ $rootfs/usr/lib64"
# minimal devices needed for busybox # minimal devices needed for busybox
if [ $in_userns -eq 1 ]; then if [ $in_userns -eq 1 ]; then
for dev in tty console tty0 tty1 tty5 ram0 null urandom; do for dev in tty console tty0 tty1 ram0 null urandom; do
touch $rootfs/dev/$dev echo "/dev/$dev dev/$dev none bind,optional,create=file 0 0" >> $path/fstab
echo "/dev/$dev dev/$dev none bind 0 0" >> $path/fstab
done done
else else
mknod -m 666 tty c 5 0 || res=1 mknod -m 666 tty c 5 0 || res=1