debfx / runjail Goto Github PK
View Code? Open in Web Editor NEWad-hoc sandboxes on Linux
License: GNU General Public License v3.0
ad-hoc sandboxes on Linux
License: GNU General Public License v3.0
OS: Ubuntu 20.04
chc@dc03:~$ runjail --cwd ~ --bind-rw ~/firefox-test:~ --rw ~/Downloads --profile x11 --net=yes -- firefox
No protocol specified
Unable to init server: 無法連接: 連線被拒絕
Error: cannot open display: :0
chc@dc03:~$
any suggestions ??
Docker hides some /proc/ and /sys/ paths that contain sensitive non-namespaced information: https://github.com/moby/moby/blob/master/oci/defaults.go#L97
Evaluate whether we need to block them as well. Non-existing paths need to be silently skipped.
chc@dc03:~$ runjail --cwd ~ --bind-rw ~/firefox-test:~ --rw ~/Downloads --profile gnome --net=yes -- ~/Downloads/Joplin-2.9.17.AppImage
fuse: device not found, try 'modprobe fuse' first
Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
open dir error: No such file or directory
any suggestions ?
Instead execing /proc/self/exe inside the sandbox it should exec a copy using memfd_create().
This avoids potential security problems if an attack manages to write to it, replacing the runjail binary on the host.
See CVE-2019-5736
Some distros have unprivileged user namespaces disabled by default (e.g. kernel.unprivileged_userns_clone sysctl).
We should detect this and print a proper error (set the sysctl or use bwrap backend).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.