Skip to content

Commit ef920fb

Browse files
kitlithslp
authored andcommitted
Set XDG_RUNTIME_DIR perimssions to 700
From the spec: "Its Unix access mode MUST be 0700". Some software will check this and throw an error if it isn't. For instance, the xdg crate returns an `Err(XdgRuntimeDirInsecure(/*...*/))` under muvm. Signed-off-by: Kitlith <[email protected]>
1 parent afdd92d commit ef920fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/muvm/src/guest/user.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub fn setup_user(uid: Uid, gid: Gid) -> Result<PathBuf> {
1616

1717
let path = tempfile::Builder::new()
1818
.prefix(&format!("muvm-run-{uid}-"))
19-
.permissions(Permissions::from_mode(0o755))
19+
.permissions(Permissions::from_mode(0o700))
2020
.tempdir()
2121
.context("Failed to create temp dir for `XDG_RUNTIME_DIR`")?
2222
.into_path();

0 commit comments

Comments
 (0)