mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 15:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
5c7d025ced
commit
74b8f86a05
@@ -910,6 +910,7 @@ class BaseConfig(object):
|
||||
# running at the same time.
|
||||
try:
|
||||
os.mkdir(lockdir)
|
||||
os.chmod(lockdir, 0o777)
|
||||
except FileExistsError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user