diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-10-23 17:35:03 +0200 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-10-23 19:08:39 +0200 |
| commit | 5c24b64fe5b242bdba68fe3d48489bed26b48eae (patch) | |
| tree | c7408078c44792314cac43cfa23ae5e56996630e /src/bindings/pledge.nim | |
| parent | b0bb61e830e76169f41db186b5946ae6859f4e6a (diff) | |
| download | chawan-5c24b64fe5b242bdba68fe3d48489bed26b48eae.tar.gz | |
sandbox: replace libseccomp with chaseccomp
This drops libseccomp as a dependency.
Also, move the capsicum/pledge definitions from bindings to sandbox.nim
because they are only used there.
Interestingly, after integrating chaseccomp I found that the
stbi process would mysteriously crash by a getrandom(2) syscall.
Closer investigation revealed it is only called on the initialization
of glibc's malloc; presumably it had never surfaced before because
libseccomp would always allocate before entering the sandbox.
So I've added getrandom to our filter as well.
Diffstat (limited to 'src/bindings/pledge.nim')
| -rw-r--r-- | src/bindings/pledge.nim | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/bindings/pledge.nim b/src/bindings/pledge.nim deleted file mode 100644 index 8d265fe6..00000000 --- a/src/bindings/pledge.nim +++ /dev/null @@ -1,6 +0,0 @@ -{.push header: "<unistd.h>", importc.} - -proc pledge*(promises, execpromises: cstring): cint -proc unveil*(path, permissions: cstring): cint - -{.pop.} |