mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-12 05:59:10 +00:00
Rewrite Linux pledge() code so it can be a payload
It's now possible to build our pledge() polyfill as a dynamic shared object that can be injected into a glibc executable using LD_PRELOAD
This commit is contained in:
parent
7bd4179b9b
commit
0277d7d6e9
37 changed files with 1980 additions and 1600 deletions
|
@ -350,7 +350,7 @@ scall sched_getattr 0xfffffffffffff13b globl # ├─ karen sandler requires s
|
|||
scall renameat2 0xfffffffffffff13c globl # └─ debian founder ian murdock found strangled with vacuum cord
|
||||
#scall seccomp 0xfffffffffffff13d globl # wrapped manually
|
||||
scall sys_getrandom 0xfff00723321f413e globl hidden # Linux 3.17+ and getentropy() on XNU/OpenBSD, coming to NetBSD in 9.2
|
||||
scall memfd_create 0xfffffffffffff13f globl # wut
|
||||
scall sys_memfd_create 0xfffffffffffff13f globl hidden
|
||||
scall kexec_file_load 0xfffffffffffff140 globl
|
||||
scall bpf 0xfffffffffffff141 globl
|
||||
scall execveat 0xfffffffffffff142 globl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue