Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make socket path length shorter for launcher interactive #1974

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

RebeccaMahany
Copy link
Contributor

If running launcher interactive as a regular user and not as root on macOS, we encounter:

W1203 10:47:40.111027 1834905600 interface.cpp:303] Extensions disabled: cannot start extension manager (/var/folders/4d/jfl75r312llb4k5j5kgp4j240000gn/T/launcher-interactive964752058/osquery-01JE6K9AS0MRYM0NKZRRTKVMWM.sock) ( Unix Domain socket path too long)

This is because the temporary directory location is different (and longer) when running as a user.

In this PR, we truncate the ULID used to identify the socket to a safer length.

@RebeccaMahany RebeccaMahany added the bug-fixes Bug Fixes label Dec 3, 2024
@RebeccaMahany RebeccaMahany marked this pull request as draft December 3, 2024 15:58
@RebeccaMahany RebeccaMahany marked this pull request as ready for review December 3, 2024 16:21
@RebeccaMahany RebeccaMahany added this pull request to the merge queue Dec 3, 2024
Merged via the queue into kolide:main with commit f668827 Dec 3, 2024
30 checks passed
@RebeccaMahany RebeccaMahany deleted the becca/socket-path-length branch December 3, 2024 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fixes Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants