[OE-core] [PATCH 5/5] runqemu: chmod 0o777 for lockdir
Robert Yang
liezhi.yang at windriver.com
Tue Jul 18 03:21:35 UTC 2017
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 at windriver.com>
---
scripts/runqemu | 1 +
1 file changed, 1 insertion(+)
diff --git a/scripts/runqemu b/scripts/runqemu
index e9ed890bb27..2be27804841 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
--
2.11.0
More information about the Openembedded-core
mailing list