Permalink
Browse files

Whitelist ptty related devices

Change-Id: I3853ad641929f0ba417ed2bdd2df9f0cb4735a15
  • Loading branch information...
1 parent 8a192bb commit b5ab5fc241d1d3e45e6d9dd7b9a15e334e2d973f @pietern pietern committed Nov 10, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 warden/root/linux/skeleton/lib/hook-parent-after-clone.sh
@@ -36,6 +36,10 @@ do
echo "c 1:9 rw" > $instance_path/devices.allow
# /dev/tty
echo "c 5:0 rw" > $instance_path/devices.allow
+ # /dev/ptmx
+ echo "c 5:2 rw" > $instance_path/devices.allow
+ # /dev/pts/*
+ echo "c 136:* rw" > $instance_path/devices.allow
fi
echo 1 > $instance_path/cgroup.clone_children

0 comments on commit b5ab5fc

Please sign in to comment.