From 4a5d21dbdc88982c2c90e660811b84983eaebeb7 Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Wed, 12 Apr 2017 02:04:31 +0000 Subject: 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 --- scripts/runqemu | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/runqemu') 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 -- cgit 1.2.3-korg