https://github.com/ricardobranco777/unsandbox
Disable sandbox
https://github.com/ricardobranco777/unsandbox
capsicum freebsd illumos landlock linux-capabilities openbsd pledge sandbox
Last synced: about 2 months ago
JSON representation
Disable sandbox
- Host: GitHub
- URL: https://github.com/ricardobranco777/unsandbox
- Owner: ricardobranco777
- License: bsd-2-clause
- Created: 2025-01-11T12:13:02.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-02-14T23:08:55.000Z (3 months ago)
- Last Synced: 2025-02-14T23:26:24.434Z (3 months ago)
- Topics: capsicum, freebsd, illumos, landlock, linux-capabilities, openbsd, pledge, sandbox
- Language: C
- Homepage:
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Disable sandbox via shared-library hijacking
Supported sandboxes:
- FreeBSD [capsicum](https://man.freebsd.org/cgi/man.cgi?query=capsicum&sektion=4)
- OpenBSD [pledge](https://man.openbsd.org/pledge)
- Illumos [privileges](https://illumos.org/man/7/privileges)
- Linux
- [capabilities](https://man7.org/linux/man-pages/man7/capabilities.7.html)
- [landlock](https://man7.org/linux/man-pages/man7/landlock.7.html)
- [prctl](https://man7.org/linux/man-pages/man2/PR_SET_NO_NEW_PRIVS.2const.html)
- [seccomp](https://man7.org/linux/man-pages/man2/seccomp.2.html)
- [SELinux](https://man7.org/linux/man-pages/man3/is_selinux_enabled.3.html)## Usage
```
make
LD_PRELOAD=$PWD/$(uname -s)/libunsandbox.so program [options] [arguments]
```See **ld.so**(8) manpage for alternatives to `LD_PRELOAD`
## BUGS / Limitations
- Doesn't support statically compiled binaries
- Doesn't support setuid/setgid binaries
- Doesn't work on HardenedBSD unless the `hardening.harden_rtld` sysctl is set to zero