diff --git a/Sources/Services/ContainerSandboxService/Server/SandboxService.swift b/Sources/Services/ContainerSandboxService/Server/SandboxService.swift index 2dd0c0f84..c91a822f9 100644 --- a/Sources/Services/ContainerSandboxService/Server/SandboxService.swift +++ b/Sources/Services/ContainerSandboxService/Server/SandboxService.swift @@ -51,7 +51,7 @@ public actor SandboxService { private var processes: [String: ProcessInfo] = [:] private var socketForwarders: [SocketForwarderResult] = [] - private static let sshAuthSocketGuestPath = "/run/host-services/ssh-auth.sock" + private static let sshAuthSocketGuestPath = "/var/host-services/ssh-auth.sock" private static let sshAuthSocketEnvVar = "SSH_AUTH_SOCK" class ExitWaiter { diff --git a/Tests/CLITests/Subcommands/Run/TestCLIRunLifecycle.swift b/Tests/CLITests/Subcommands/Run/TestCLIRunLifecycle.swift index 6c017c495..4d797cadb 100644 --- a/Tests/CLITests/Subcommands/Run/TestCLIRunLifecycle.swift +++ b/Tests/CLITests/Subcommands/Run/TestCLIRunLifecycle.swift @@ -189,14 +189,14 @@ class TestCLIRunLifecycle: CLITest { // Verify SSH_AUTH_SOCK is set to the expected guest path inside the container. let sshSockValue = try doExec(name: name, cmd: ["sh", "-c", "echo $SSH_AUTH_SOCK"]) #expect( - sshSockValue.trimmingCharacters(in: .whitespacesAndNewlines) == "/run/host-services/ssh-auth.sock", + sshSockValue.trimmingCharacters(in: .whitespacesAndNewlines) == "/var/host-services/ssh-auth.sock", "expected SSH_AUTH_SOCK to point to guest socket path" ) // Verify the forwarded socket file is present and is a socket. let socketCheck = try doExec( name: name, - cmd: ["sh", "-c", "[ -S /run/host-services/ssh-auth.sock ] && echo exists || echo missing"] + cmd: ["sh", "-c", "[ -S /var/host-services/ssh-auth.sock ] && echo exists || echo missing"] ) #expect( socketCheck.trimmingCharacters(in: .whitespacesAndNewlines) == "exists",