-
Notifications
You must be signed in to change notification settings - Fork 12
Adding a minimal shell to default rootfs #36
Comments
Need to provide a shell for vm debuging. Fixes: clearcontainers#36 Signed-off-by: Jose Carlos Venegas Munoz <[email protected]>
@jodh-intel, I will add |
I prefer to do not include bash or any other utility that will not be used by the agent, |
@devimc @mcastelino in case dont want to add it, it could be documented in clearcontainers/agent#122 to use EXTRA_PKGS="bash-bin" just for debugging |
we can create a debugeable image running next command:
also we can include any other package needed |
@devimc @jodh-intel I would rather have some minimal shell, vs asking the user to rebuild the image. If it come to that, we should provide a debug image as part of our default package, so that we provide debuggability by default. Also I do not buy that having bash will make our solution any worse from a security point of view. Our going in assumption for clear containers is that obtaining root in the VM is a given. We prevent further compromise. |
@jcvenegas how many MB increase the image size? |
my vote for toybox @jodh-intel |
I wouldn't like to include bash in the "production" version of the CC image because I want to avoid any possible container escape (i.e chroot /proc/1/cwd) |
The `image_builder.sh` script must be run as `root`. Fixes clearcontainers#36. Signed-off-by: James O. D. Hunt <[email protected]>
@jcvenegas can we add a shell to the rootfs. That will allow us to provide a debug console.
The current minimal set of tools does not have a shell pre-installed.
See clearcontainers/agent#122
The text was updated successfully, but these errors were encountered: