1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Description: Add missing memfd_create syscall numbers for i386, ppc64el and s390x
Author: Daniel Echeverri <epsilon@debian.org>
Forwarded: not-needed
Last-Update: 2026-03-07
--- a/src/hook_stub
+++ b/src/hook_stub
@@ -86,7 +86,7 @@ _bc_dec() {
### HERE: it's not sourced. Execute instead.
# Note: The 2nd LANG is the original/correct and _not_ set to C.
- LANG=C exec perl '-e$^F=255;for(319,279,385,4314,4354){($f=syscall$_,$",0)>0&&last};open($o,">&=".$f);open($i,"'"$prg"'|");print$o(<$i>);close($i)||exit($?/256);$ENV{"LANG"}="'"$LANG"'";exec{"/proc/$$/fd/$f"}"'"${0:-python3}"'",@ARGV;exit 255' -- "$@"
+ LANG=C exec perl '-e$^F=255;for(319,356,279,385,350,360,4314,4354){($f=syscall$_,$",0)>0&&last};open($o,">&=".$f);open($i,"'"$prg"'|");print$o(<$i>);close($i)||exit($?/256);$ENV{"LANG"}="'"$LANG"'";exec{"/proc/$$/fd/$f"}"'"${0:-python3}"'",@ARGV;exit 255' -- "$@"
# exit # EXEC FAILED. FATAL
}
|