Skip to content

Commit

Permalink
Merge pull request #420 from hallyn/fixbusybox.1
Browse files Browse the repository at this point in the history
fix busybox unpriv
  • Loading branch information
stgraber committed Jan 27, 2015
2 parents a9516fe + cfe615f commit b04c281
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions templates/lxc-busybox.in
Expand Up @@ -73,9 +73,8 @@ $rootfs/usr/lib64"

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

0 comments on commit b04c281

Please sign in to comment.