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

join: add fexecve fallback for shells #3850

Merged
merged 1 commit into from
Dec 30, 2020

Conversation

smitsohu
Copy link
Collaborator

@smitsohu smitsohu commented Dec 28, 2020

Allows users to join a sandbox and get a shell even if there is none in the sandbox mount namespace.

Limitations are described in #2934 (comment)

rusty-snake added a commit that referenced this pull request Dec 29, 2020
We do not start /bin/bash in the sandbox, we use $SHELL (which is
usually /bin/bash). See #3434 and #3844. This commit updates the
manpage accordingly until #3434 is resolved with a final solution like
using /bin/bash or /bin/sh as hardcoded default. Close #3844.

The descriptions of --join* are not updated as there is currenly some
work, see #2934 and #3850.
Allows users to join a sandbox and get a shell even
if there is none in the sandbox mount namespace.
There are few limitations:
1. This will fail with scripted shells (see man 3 fexecve for an explanation)
2. Shell process names are not user friendly
@netblue30
Copy link
Owner

merged. thanks!

@netblue30 netblue30 merged commit 98a87e6 into netblue30:master Dec 30, 2020
@smitsohu smitsohu deleted the smitsohu-shell branch December 30, 2020 21:40
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