Fix chroot permissions on shared memory so POSIX semaphores work.

BUG=none
TEST=Enter/exit chroot. Ran python multiprocessing.

Change-Id: I645587d2750274ae1d2b445ab7f52bd8377b9d2e
Reviewed-on: http://gerrit.chromium.org/gerrit/401
Reviewed-by: Paul Pendlebury <pauldean@chromium.org>
Reviewed-by: Zdenek Behan <zbehan@chromium.org>
Tested-by: Dale Curtis <dalecurtis@chromium.org>
This commit is contained in:
Dale Curtis 2011-05-05 16:16:59 -07:00
parent 32125c5645
commit 986317313b

View File

@ -275,6 +275,9 @@ function setup_env {
fi
fi
# Fix permissions on shared memory to allow non-root users access to POSIX
# semaphores.
sudo chmod -R 777 "${FLAGS_chroot}/dev/shm"
) 200>>"$LOCKFILE" || die "setup_env failed"
}