exile.h
cbsd
exile.h | cbsd | |
---|---|---|
1 | 6 | |
14 | 624 | |
- | 1.6% | |
0.0 | 9.0 | |
over 1 year ago | 6 days ago | |
C | C | |
- | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
exile.h
-
Show HN: Porting OpenBSD Pledge() to Linux
Great work!
>.. So how do we get it that simple on Linux? I believe the answer is to find someone with enough free time to figure out how to use SECCOMP BPF to implement pledge.
> There's been a few devs in the past who've tried this. I'm not going to name names, because most of these projects were never completed.
I guess I am also one of those. I am giving it a shot with my WIP sandboxing library, which aims at making sandboxing easier for applications in general: https://github.com/quitesimpleorg/exile.h. It also aims to fix the "file system blind spot" mentioned in the article, by using Landlock and Namespaces/chroot.
Though I am calling my attempt "vows" instead of "pledge" to avoid misunderstandings. At the the end of the day, pledge() cannot be pledge() on Linux, due to limitations which the article also mentions.
Nevertheless, as has already been mentioned in this thread, as all attempts, mine also suffers from the fact that one has to keep up constantly with kernel releases and all software must recompiled from time to time against new library releases. This is a suboptimal situation. Secondly, there systems calls with currently cannot be filtered with seccomp BPF, such as openat2() and clone3() and so on.
Therefore, at this time you cannot have pledge() on Linux properly. So I am putting it on hold until deep argument inspection lands.
Overall, my experience led me to believe in order to have true, partical pledge() on Linux, it must be implemented in the kernel ultimately.
cbsd
-
3 Advantages to Running FreeBSD as Your Server Operating System
To add on, CBSD may also provide of these functions. So there are options.
[1] https://github.com/cbsd/cbsd
-
XigmaNAS + new bhyve extension
It definitely has several restrictions, but I now create virtual machines very easily. The module uses the efforts of the CBSD project (supporting the library of (well tested by community) cloud images).
-
A future without containers? ( thoughts )
Impressed by the AWS FireCracker project, as part of the CBSD project, the new subproject 'CBSD Firestarter' begins, which will be focused on optimizing Linux/BSD images for use in Bhyve hypervisor.
-
jail + linuxlator + cbsd : warning: no such /etc/rc.conf: , skip for config ifconfig_eth0
( and here: https://github.com/cbsd/cbsd/issues/663 ) I added link to https://github.com/cbsd/cbsd/issues/589#issuecomment-829615212 - this is how I configured the network in my demo. Its not linux utilities.
- Which BSD/hypervisor?
-
Ubuntu Kernel Update and ZFS Not Working
jails and bhyve virtualization is the way in FreeBSD. k8s is done simpler with cbsd: https://github.com/cbsd/cbsd
What are some alternatives?
vm-bhyve - Shell based, minimal dependency bhyve manager
rdrview - Firefox Reader View as a command line tool
virtualbox-org-svn-vbox-trunk - *UNOFFICIAL* mirror of the repository at http://www.virtualbox.org/svn/vbox/trunk (the first 30569 commits are courtesy of https://gitorious.org/virtualbox/mainlinemirror); Please **DO NOT** open pull requests against this repo
NomadBSD - Livesystem based on FreeBSD
htop - htop - an interactive process viewer
arcan - Arcan - [Display Server, Multimedia Framework, Game Engine] -> "Desktop Engine"
osv - OSv, a new operating system for the cloud.
kernel-fuzzer-for-xen-project - Kernel Fuzzer for Xen Project (KF/x) - Hypervisor-based fuzzing using Xen VM forking, VMI & AFL
unik - The Unikernel & MicroVM Compilation and Deployment Platform
rumprun - The Rumprun unikernel and toolchain for various platforms
bastille - Bastille is an open-source system for automating deployment and management of containerized applications on FreeBSD.
kubevirt - Kubernetes Virtualization API and runtime in order to define and manage virtual machines.