mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
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:
parent
32125c5645
commit
986317313b
@ -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"
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user