Skip to content

Conversation

@bbhtt
Copy link
Collaborator

@bbhtt bbhtt commented Oct 28, 2024

Flatpak internally sets up a /var/run to /run symlink https://github.com/flatpak/flatpak/blob/fd1b7e444016d1b44bdab7cb5642b0ac83bd4b9e/common/flatpak-run.c#L2281. If it is symlinked on host too, when using --filesystem=var/run/subpath bwrap gets called twice to create the same symlink and the second one will fail.

See also containers/bubblewrap@4109d59

@bbhtt
Copy link
Collaborator Author

bbhtt commented Oct 28, 2024

@TingPing would be nice if you can confirm this, it's based on some casual observation and a cursory look at the code.

Exposing /var/run/subpath seems to work, when it is not a symlink on host.

Flatpak internally sets up a /var/run to /run symlink https://github.com/flatpak/flatpak/blob/fd1b7e444016d1b44bdab7cb5642b0ac83bd4b9e/common/flatpak-run.c#L2281. If it is symlinked on host too, when using
`--filesystem=var/run/subpath` bwrap gets called twice to
create the same symlink and the second one will fail.

See also containers/bubblewrap@4109d59
@bbhtt bbhtt merged commit e4b612c into master Nov 14, 2024
@TingPing TingPing deleted the bbhtt/fs-var-run branch November 14, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants