summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-04-12 02:04:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-27 09:21:48 +0100
commit4a5d21dbdc88982c2c90e660811b84983eaebeb7 (patch)
treeb7603898ec150698526c49d0273e9d32df875db1 /scripts/runqemu
parent8c6f253dfb4899324e91dd5d082190909e2bd25d (diff)
downloadopenembedded-core-4a5d21dbdc88982c2c90e660811b84983eaebeb7.tar.gz
runqemu: chmod 0o777 for lockdir
Multi-users may run qemu on the same host, all of them should be able to create or remove lock in lockdir, so set lockdir's mode to 0o777. Note, os.mkdir()'s mode is default to 0o777, but the current umask value is first masked out, so use os.chmod() to set it. Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 5f2b38febc..239c48ffac 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -910,6 +910,7 @@ class BaseConfig(object):
# running at the same time.
try:
os.mkdir(lockdir)
+ os.chmod(lockdir, 0o777)
except FileExistsError:
pass