From 1056c60a9cacb1ac72f6e17b507ef0103831048f Mon Sep 17 00:00:00 2001 From: Pierre Beucher Date: Fri, 18 Aug 2023 17:32:15 +0200 Subject: [PATCH] fix: incorrect permission for /tmp subdirectory when fallbacking from XDG_RUNTIME_DIR never saw that before, probably because it's mostly used by containers running as root --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 265d6ff..962068a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -294,7 +294,7 @@ fn prepare_working_directory_tmp(app_name: &String, env_name: &String) -> Result fs::create_dir_all(&user_workdir) .with_context(|| format!("Couldn't create user working directory {:?}", &user_workdir))?; - fs::set_permissions(&user_workdir, fs::Permissions::from_mode(0o0600)) + fs::set_permissions(&user_workdir, fs::Permissions::from_mode(0o0700)) .with_context(|| format!("Couldn't set permission on user working directory {:?}", &user_workdir))?; // create current app/env workdir under user workdir