summaryrefslogtreecommitdiffstats
path: root/scripts
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 22:36:52 +0100
commit74b8f86a0550a6c2d643e981bbfb6c1a958a90db (patch)
tree68d372e08f9d1ce6acfd9278cfc97a0a3ac01218 /scripts
parent5c7d025ced2120e4f277b8fb22813a8602e3f8c7 (diff)
downloadpoky-74b8f86a0550a6c2d643e981bbfb6c1a958a90db.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. (From OE-Core rev: 4a5d21dbdc88982c2c90e660811b84983eaebeb7) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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):
910 # running at the same time. 910 # running at the same time.
911 try: 911 try:
912 os.mkdir(lockdir) 912 os.mkdir(lockdir)
913 os.chmod(lockdir, 0o777)
913 except FileExistsError: 914 except FileExistsError:
914 pass 915 pass
915 916