Skip to content

Commit ef32e6e

Browse files
committed
Load service configuration files with long names
Previously they were skipped. Fixes: QubesOS/qubes-issues#9099
1 parent 175e5ad commit ef32e6e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

libqrexec/exec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ static int load_service_config_raw(struct qrexec_parsed_command *cmd,
278278
if (!config_path)
279279
config_path = QUBES_RPC_CONFIG_PATH;
280280

281-
char config_full_path[256];
281+
char config_full_path[QUBES_SOCKADDR_UN_MAX_PATH_LEN];
282282

283283
int ret = find_file(config_path, cmd->service_descriptor,
284284
config_full_path, sizeof(config_full_path), NULL);

qrexec/tests/socket/agent.py

-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,6 @@ def test_exec_service_with_config(self):
409409

410410
def test_wait_for_session(self):
411411
self._test_wait_for_session("qubes.Service+arg")
412-
@unittest.expectedFailure
413412
def test_wait_for_session_huge_path(self):
414413
l = 255 - len("qubes.Service+")
415414
arg = l * "a"

0 commit comments

Comments
 (0)