Commit Graph

9 Commits

Author SHA1 Message Date
Colin Walters
b8e6e1159e demos/shell: Use --die-with-parent
As I said in the release notes, I think the majority of use cases want this,
which includes this interactive shell.

Closes: #189
Approved by: alexlarsson
2017-03-29 06:25:24 +00:00
Colin Walters
ad4a7293f4 Add --unshare-all and --share-net
In discussion in https://github.com/projectatomic/bubblewrap/pull/150
it was noted that most of the bwrap command line tends towards "closed
by default, request open".  But the `--unshare` options are inverse.

Now, I suspect in practice there's only one namespace that most users
will care about, which is the network namespace.  There are very useful
programs to build on both cases.

I think everything else (pid, ipc, uts) people will want as a group.
Any cases that are unusual enough to want to turn one of them off
can still fall back to the previous bwrap behavior of explicitly
unsharing.  They're likely to be security sensitive enough
that if a new namespace were added, it would make sense to evaluate
the tool.

But again I think most users will want all namespaces, with the network one as a
primary "enable it" option.

Closes: #153
Approved by: alexlarsson
2017-01-17 16:28:16 +00:00
Alexander Larsson
a6e15164f9 demos/bubblewrap-shell.sh: Unshare all namespaces
Lets demo things as sandboxed as possible.

Closes: #154
Approved by: cgwalters
2017-01-17 13:43:49 +00:00
Colin Walters
e8e47a9dd4 demo/shell: Add /var/tmp compat symlink, tweak PS1, add more docs
I was working on rpm-ostree's use of bwrap and realized we weren't setting up
/var/tmp. I think this should be a best practice for app compatibility.

I also took the opportunity to expand the docs a bit, and overriding PS1 helps
users know they're in the container shell.

Closes: #137
Approved by: alexlarsson
2017-01-11 17:35:06 +00:00
Alexander Larsson
05435925ae Clean up demo shells using bash redirection features 2016-03-07 14:36:35 +01:00
Alexander Larsson
05762b42fb Make commandline args shorter, drom --mount and --make prefixes
Its pretty obvious (in this context) what e.g. --bind does. Having
unnecessary large names just makes things harder to read.
2016-02-29 10:50:25 +01:00
Alexander Larsson
db1782164e Refresh bubblewrap-shell demo
This adds host (ro) resolv.conf, minimal passwd/group and sets
XDG_RUNTIME_DIR.
2016-02-19 12:11:43 +01:00
Alexander Larsson
c79b61e90a Rename binary to bwrap
This is shorter and less cutesy
2016-02-18 08:45:44 +01:00
Colin Walters
a998dedf7d Move xdg-app-run.sh into demos/, add new bubblewrap-shell.sh
Let's accumulate use cases/tests here.
2016-02-17 17:36:21 -05:00