Skip to content

Commit

Permalink
Load service configuration files with long names
Browse files Browse the repository at this point in the history
Previously they were skipped.

Fixes: QubesOS/qubes-issues#9099
  • Loading branch information
DemiMarie committed Apr 9, 2024
1 parent 175e5ad commit ef32e6e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion libqrexec/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static int load_service_config_raw(struct qrexec_parsed_command *cmd,
if (!config_path)
config_path = QUBES_RPC_CONFIG_PATH;

char config_full_path[256];
char config_full_path[QUBES_SOCKADDR_UN_MAX_PATH_LEN];

int ret = find_file(config_path, cmd->service_descriptor,
config_full_path, sizeof(config_full_path), NULL);
Expand Down
1 change: 0 additions & 1 deletion qrexec/tests/socket/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ def test_exec_service_with_config(self):

def test_wait_for_session(self):
self._test_wait_for_session("qubes.Service+arg")
@unittest.expectedFailure
def test_wait_for_session_huge_path(self):
l = 255 - len("qubes.Service+")
arg = l * "a"
Expand Down

0 comments on commit ef32e6e

Please sign in to comment.