Commit 7642088a authored by Samuel Thibault's avatar Samuel Thibault

hurd-i386: Fix getauxval(AT_SECURE).

Used inconditionally by gvfs

patches/hurd-i386/unsubmitted-getaux_at_secure.diff
parent 23506b03
......@@ -10,6 +10,8 @@ glibc (2.27-6) UNRELEASED; urgency=medium
* patches/hurd-i386/tg-hurdsig-SA_SIGINFO.diff: Fix standardization of
exposition of sigaction
* patches/kfreebsd/local-tst-unique.diff: Fix patch application.
* patches/hurd-i386/unsubmitted-getaux_at_secure.diff: Fix
getauxval(AT_SECURE).
[ Aurelien Jarno ]
* debian/patches/git-updates.diff: update from upstream stable branch.
......
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);
......@@ -13,3 +13,4 @@ hurd-i386/local-versions-hack.diff
hurd-i386/unsubmitted-prof-eintr.diff
hurd-i386/tg-glibc-2.24-restore-malloc-hook.diff
hurd-i386/tg2.26-sched_param.diff
hurd-i386/unsubmitted-getaux_at_secure.diff
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment