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 \