MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / restrict_socket_permissions

Function restrict_socket_permissions

crates/openshell-driver-vm/src/main.rs:375–378  ·  view source on GitHub ↗
(socket_path: &Path)

Source from the content-addressed store, hash-verified

373}
374
375fn restrict_socket_permissions(socket_path: &Path) -> std::result::Result<(), String> {
376 std::fs::set_permissions(socket_path, std::fs::Permissions::from_mode(0o600))
377 .map_err(|err| format!("chmod socket {}: {err}", socket_path.display()))
378}
379
380#[derive(Debug, Clone, Copy, PartialEq, Eq)]
381struct PeerCredentials {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected