Actions
Bug #9241
closed
JI
JI
windows: service registration loses quoting of command-line arguments
Bug #9241:
windows: service registration loses quoting of command-line arguments
Affected Versions:
Effort:
Difficulty:
Label:
Description
--service-install and --service-change-params quote the executable but append other arguments unquoted. Paths containing spaces, such as C:\Program Files\Suricata\suricata.yaml, are split when the service starts. This can prevent startup through invalid paths or unwanted positional arguments becoming part of the BPF filter. Confirmed by source inspection in 8.0.7 and main at 9451642a28; separate from the executable-path fix in #8600. Preserve argument boundaries using proper Windows quoting and escaping in both service-registration paths.
OT Updated by OISF Ticketbot 21 days ago
- Subtask #9242 added
OT Updated by OISF Ticketbot 21 days ago
- Label deleted (
Needs backport to 8.0)
JI Updated by Jason Ish 21 days ago
- Related to Security #8600: windows: unquoted LocalSystem service ImagePath added
PA Updated by Philippe Antoine 15 days ago
- Status changed from In Review to Resolved
Actions