Skip to content

flatpak-spawn: Add --share-pids option - #41

Merged
alexlarsson merged 1 commit into
flatpak:masterfrom
smcv:subsandbox-share-pidns
Jan 12, 2021
Merged

alexlarsson merged 1 commit into
flatpak:masterfrom
smcv:subsandbox-share-pidns

Conversation

@smcv

@smcv smcv commented Jan 8, 2021

Copy link
Copy Markdown
Contributor

This option is similar to --expose-pids, except that instead of making
the subsandbox use a nested pid namespace inside the parent's, it makes
the subsandbox share the parent's pid namespace as-is, so that process
IDs in the parent and the subsandbox are interchangeable. This will
be useful if the parent and the subsandbox communicate via protocols
that assume a global view of the process ID namespace, for example
passing process IDs across an AF_UNIX socket or in shared memory.

See flatpak/flatpak#4060 for the server side of
this feature.

This option is similar to --expose-pids, except that instead of making
the subsandbox use a nested pid namespace inside the parent's, it makes
the subsandbox share the parent's pid namespace as-is, so that process
IDs in the parent and the subsandbox are interchangeable. This will
be useful if the parent and the subsandbox communicate via protocols
that assume a global view of the process ID namespace, for example
passing process IDs across an AF_UNIX socket or in shared memory.

See flatpak/flatpak#4060 for the server side of
this feature.

Signed-off-by: Simon McVittie <[email protected]>
@smcv

smcv commented Jan 8, 2021

Copy link
Copy Markdown
Contributor Author

Ready for review, but should not be merged until after the API is finalized by merging flatpak/flatpak#4060.

@alexlarsson
alexlarsson marked this pull request as ready for review January 12, 2021 08:56
@alexlarsson
alexlarsson merged commit a02341a into flatpak:master Jan 12, 2021
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