Bwscripts
Bubblewrap example scripts
Install / Use
/learn @valoq/BwscriptsREADME
bwscripts
Bubblewrap example scripts
This repository contains example profile scripts for several programs to show how bubblewrap can be used to sandbox applications.
[!Note] For sandboxing on production systems use apparmor instead! Container isolation can get in the way of significantly more effective native process isolation, like in case of Firefox and Chromium.
Please see apparmor.d for application profiles.
Install
To automatically use the sandboxed applications profiles, copy the scripts to /usr/local/bin and make them executable. By default a seccomp bpf file is expected in that directory as well. Use the exportFilter program to generate the seccomp bpf file. You can create individual filters by specifying syscalls to be blacklisted or whitelisted using the defined macros.
The sandboxing scripts expect the host system to run a wayland compositor as well as pipewire when audio is required.
Disclaimer
This repository is not associated with the official bubblewrap project
Warning
Using the provided scripts to sandbox linux desktop applications only provides limited protection as there are several weak points like the X-Window-Server and Dbus IPC that need to be isolated as well to prevent sandbox escape. See Sandbox Status for details on the example scripts
If not otherwise documented in the profile script, the sandbox environment should be effective in that is will reduce the impact of successful compromise without allowing trivial sandbox escape.
Todo
- support xdg-portal APIs
- find a way to mount pipewire socket dynamically
- isolate abstract sockets in network namespaces
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
