From: GNU Libc Maintainers Date: Sat, 27 Aug 2022 11:38:11 +0000 (+0100) Subject: git-bootstrap-enable_secure X-Git-Tag: archive/raspbian/2.34-7+rpi1~1^2~69 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ce516670cc72f8b50e49bed22dc5cb83347173ee;p=glibc.git git-bootstrap-enable_secure commit dba88b4f44d80864ec78595526e081ab9b5af278 Author: Samuel Thibault Date: Fri Aug 19 02:16:54 2022 +0200 hurd: Assume non-suid during bootstrap We do not have a hurd data block only when bootstrapping the system, in which case we don't have a notion of suid yet anyway. This is needed, otherwise init_standard_fds would check that standard file descriptors are allocated, which is meaningless during bootstrap. Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name git-bootstrap-enable_secure.diff --- diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c index 4dc9017ec..c431d1425 100644 --- a/sysdeps/mach/hurd/i386/init-first.c +++ b/sysdeps/mach/hurd/i386/init-first.c @@ -95,8 +95,13 @@ init1 (int argc, char *arg0, ...) d = (void *) ++envp; if ((void *) d == argv[0]) - /* No Hurd data block to process. */ - return; + { + /* No Hurd data block to process. */ +#ifndef SHARED + __libc_enable_secure = 0; +#endif + return; + } #ifndef SHARED __libc_enable_secure = d->flags & EXEC_SECURE;