Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 57a6eee

Browse files
authored
adjust socket path permission to allow system wide writes (also from docker) (#390)
1 parent a2aade6 commit 57a6eee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/worker/src/docker/taskbridge/bridge.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,8 @@ impl TaskBridge {
240240
};
241241

242242
// allow both owner and group to read/write
243-
match fs::set_permissions(socket_path, fs::Permissions::from_mode(0o660)) {
244-
Ok(_) => debug!("Set socket permissions to 0o660"),
243+
match fs::set_permissions(socket_path, fs::Permissions::from_mode(0o666)) {
244+
Ok(_) => debug!("Set socket permissions to 0o666"),
245245
Err(e) => {
246246
error!("Failed to set socket permissions: {}", e);
247247
return Err(e.into());
@@ -372,7 +372,7 @@ mod tests {
372372
assert!(socket_path.exists());
373373
let metadata = fs::metadata(&socket_path)?;
374374
let permissions = metadata.permissions();
375-
assert_eq!(permissions.mode() & 0o777, 0o660);
375+
assert_eq!(permissions.mode() & 0o777, 0o666);
376376

377377
// Cleanup
378378
bridge_handle.abort();

0 commit comments

Comments
 (0)