commit 2689708215d3aeecdc5076b6604a6d1f1ec69c74
parent e4456fa0fbc56e1fb09761da7248195790e46680
Author: Friedel Schön <[email protected]>
Date: Mon, 22 Apr 2024 11:09:05 +0200
adding paragraph about shell-execution
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/readme.md b/readme.md
@@ -30,6 +30,8 @@ Run **weakbox** with the desired options and command to execute within the conta
weakbox [options] command ...
```
+By default `command` is executed, if command is omitted current shell or `/bin/sh` is executed.
+
### Options
- `-h`: Display usage information.
diff --git a/weakbox.1 b/weakbox.1
@@ -5,10 +5,11 @@ weakbox \- create a weak container for running programs from a different Linux d
.SH SYNOPSIS
.B weakbox
-[\-hs] [\fI\-r\fP path] [\fI\-b\fP source[:target]] [\fI\-B\fP source] [\fI\-u\fP uid[:uid]] [\fI\-g\fP gid[:gid]] command ...
+[\-hs] [\fI\-r\fP path] [\fI\-b\fP source[:target]] [\fI\-B\fP source] [\fI\-u\fP uid[:uid]] [\fI\-g\fP gid[:gid]] [command] ...
.SH DESCRIPTION
\fBweakbox\fR is a tool for Linux that allows you to create a container environment suitable for running programs from a different Linux distribution, particularly useful for executing glibc-based programs (mostly closed-source software) under systems that are musl-based. The container created by \fBweakbox\fR is not secured and should not be considered as a secure isolation mechanism.
+By default \fBcommand\fR is executed, if command is omitted current shell or \fI/bin/sh\fR is executed.
.SH OPTIONS
.TP