]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
runqemu: chmod 0o777 for lockdir
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 12 Apr 2017 02:04:31 +0000 (02:04 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Jul 2017 08:21:48 +0000 (09:21 +0100)
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>
scripts/runqemu

index 5f2b38febc333edd51ba7eda5a89084f6882f3f6..239c48fface0e3bef28e36d8c16ac48e9b16e2a0 100755 (executable)
@@ -910,6 +910,7 @@ class BaseConfig(object):
             # running at the same time.
             try:
                 os.mkdir(lockdir)
+                os.chmod(lockdir, 0o777)
             except FileExistsError:
                 pass