Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fexecve tests / Improve quality of fexecve implementation #888

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

G4Vi
Copy link
Collaborator

@G4Vi G4Vi commented Sep 2, 2023

  • Get fexecve test running and passing on x86_64 linux again
  • Make fexecve test possibly work on other architectures
  • On Linux require /proc for fexecve_test
  • Use execve with /proc/self/fd or equivalent when executable is an APE so it's loaded by an APE loader
  • Test ARM64
  • On Linux require kernel 3.17 or higher for memfd_create
  • Fix FreeBSD compat.

… of running it

fexecve_test.c: fix zipread.com. renable tinyelf test (x86_64) only

fexecve_test.c: make memfd_create test work on all archs cosmopolitan is compiled to

(f)execve_test.c add checking for /proc/self/fd/ for fexecve

fexecve_test: get /zip/echo working again

move execve test out of fexecve_test.c

assimilate via running embedded shell script instead of parsing it

satisfy -Werror=discarded-qualifiers

fexecve: fix zipos when executable is not an APE

comment out broken tests

get most fexecve tests working again

switch memfd_create test back to vfork

add life.elf back into zipread.c, move zipread into proc

get zipos execve working again
@jart jart force-pushed the master branch 2 times, most recently from faa6285 to 2c4b887 Compare July 25, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant