File: fix-memfd-create-syscall-missing-archs.patch

package info (click to toggle)
bincrypter 1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164 kB
  • sloc: sh: 722; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 951 bytes parent folder | download
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
     }