1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
* sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define if
	__ASSUME_AT_XID is defined.
	* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_XID): Define
	for 2.4.1 and up.
	* sysdeps/generic/dl-sysdep.c (_dl_sysdep_start): Optimize handling
	of AT_UID, AT_EUID, AT_GID, and AT_EGID.
This commit is contained in:
Ulrich Drepper
2002-07-20 17:31:30 +00:00
parent 864dd9b2d0
commit 846c6907d0
4 changed files with 31 additions and 20 deletions

View File

@ -171,6 +171,12 @@
# define __ASSUME_AT_PAGESIZE 1
#endif
/* Starting with at least 2.4.0 the kernel passes the uid/gid unconditionally
up to the child. */
#if __LINUX_KERNEL_VERSION >= 132097
# define __ASSUME_AT_XID 1
#endif
/* Starting with 2.4.5 kernels PPC passes the AUXV in the standard way
and the mmap2 syscall made it into the official kernel. */
#if __LINUX_KERNEL_VERSION >= (132096+5) && defined __powerpc__