From 1e488379d7dddb75ccfd4e393f7afc0b770d80fe Mon Sep 17 00:00:00 2001 From: Manish Gupta Date: Fri, 4 Dec 2020 10:37:30 -0600 Subject: [PATCH 1/2] Fixed chmod in run --- container/tools/run | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/container/tools/run b/container/tools/run index 8c3a7b1..f983b24 100755 --- a/container/tools/run +++ b/container/tools/run @@ -244,7 +244,7 @@ def clear_run_envvars(): try: shutil.rmtree(RUN_ENVIRONMENT_DIR) os.makedirs(RUN_ENVIRONMENT_DIR) - os.chmod(RUN_ENVIRONMENT_DIR, 700) + os.chmod(RUN_ENVIRONMENT_DIR, 0o700) except: warning("clear_run_envvars: failed at some point...") @@ -362,11 +362,11 @@ def setup_run_directories(args): os.makedirs(directory) if directory == RUN_ENVIRONMENT_DIR: - os.chmod(directory, 700) + os.chmod(directory, 0o700) if not os.path.exists(RUN_ENVIRONMENT_FILE_EXPORT): open(RUN_ENVIRONMENT_FILE_EXPORT, 'a').close() - os.chmod(RUN_ENVIRONMENT_FILE_EXPORT, 640) + os.chmod(RUN_ENVIRONMENT_FILE_EXPORT, 0o640) uid = pwd.getpwnam("root").pw_uid gid = grp.getgrnam("root").gr_gid os.chown(RUN_ENVIRONMENT_FILE_EXPORT, uid, gid) From f38b116142a81a7e191b4637a6b560d7039928db Mon Sep 17 00:00:00 2001 From: Manish Gupta Date: Fri, 4 Dec 2020 10:37:56 -0600 Subject: [PATCH 2/2] Fixed chmod in run --- .release | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.release b/.release index d255ba0..d595ac1 100644 --- a/.release +++ b/.release @@ -1,2 +1,2 @@ -release=0.2.5 -tag=0.2.5 \ No newline at end of file +release=0.2.6 +tag=0.2.6 \ No newline at end of file