From 63bb721eac6b6fd2ec033736175759387a6b2a40 Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sun, 30 Apr 2023 01:09:46 -0700 Subject: [PATCH] avoid issue for now --- cosmo-bootstrap/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cosmo-bootstrap/Dockerfile b/cosmo-bootstrap/Dockerfile index ea524ba..6ce47e4 100644 --- a/cosmo-bootstrap/Dockerfile +++ b/cosmo-bootstrap/Dockerfile @@ -39,6 +39,10 @@ RUN : \ && shed libc/elf/elf.h '/"libc\/elf\/struct\/ehdr.h"/i\\#include "libc/elf/struct/dyn.h"' \ # awk's pledge isn't working for me for whatever reason \ && shed third_party/awk/main.c '/pledge.*{/,/}/d' \ +# this feature detection is slightly broken (for now) \ + && shed libc/calls/unveil.c \ +'/^ if (landlock_abi_version == -1) {/i\\ + landlock_abi_version = landlock_create_ruleset(0, 0, LANDLOCK_CREATE_RULESET_VERSION);' \ # create a mapping from flavor to mode (possibly an empty string) \ && { [ "$COSMO_FLAVOR" != def ] && mode="$COSMO_FLAVOR" || mode= ;} \ && printf '%s="%s"\n' >env \