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

Delete /tmp/lima-psl-* directories even on limactl delete -f #1117

Open
jandubois opened this issue Oct 17, 2022 · 0 comments
Open

Delete /tmp/lima-psl-* directories even on limactl delete -f #1117

jandubois opened this issue Oct 17, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jandubois
Copy link
Member

On macOS, for portforwarding to "privileged" port on localhost we create "pseudo-loopback" forwarders, so we can listen on 0.0.0.0 (which doesn't require root) and then reject any connection that does not come from localhost.

These forwarders are not cleaned up by limactl delete -f. macOS cleans up regular files and directories 3 days after they have been last accessed, but this does not happen for sockets, so these will hang around forever.

So in addition to deleting them on forced delete, we maybe also want to do the cleanup of older instances that may have been left behind when an instance crashed, or the host was rebooted, or similar. Normally the right way to deal with this would be to create the sockets under /var/run (which is completely wiped on reboot), but that requires root, which is what we are trying to avoid by creating these forwarders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant