HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/usr/src/glibc/debian/patches/hurd-i386/unsubmitted-getaux_at_secure.diff
FIXME: sysdeps/mach/hurd/i386/init-first.c should instead pass an auxv
to __libc_start_main

Index: glibc-2.28/misc/getauxval.c
===================================================================
--- glibc-2.28.orig/misc/getauxval.c
+++ glibc-2.28/misc/getauxval.c
@@ -18,6 +18,7 @@
 #include <sys/auxv.h>
 #include <errno.h>
 #include <ldsodefs.h>
+#include <unistd.h>
 
 
 unsigned long int
@@ -27,6 +28,11 @@ __getauxval (unsigned long int type)
   ElfW(auxv_t) *p;
 #endif
 
+#ifdef AT_SECURE
+  if (type == AT_SECURE)
+    return __libc_enable_secure;
+#endif
+
 #ifdef AT_HWCAP
   if (type == AT_HWCAP)
     return GLRO(dl_hwcap);