about summary refs log tree commit diff
path: root/sysdeps/unix
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2019-09-14 18:22:52 +0200
committerAurelien Jarno <aurelien@aurel32.net>2019-09-14 18:22:52 +0200
commit1a6566094d3097f4a3037ab5555cddc6cb11c3a3 (patch)
tree97d0d006b4470eeaab9ad52f5d3ff10d5a50a29f /sysdeps/unix
parent02d35f0646050157d47f22f2f74347431d5ccbdd (diff)
downloadglibc-1a6566094d3097f4a3037ab5555cddc6cb11c3a3.tar.gz
glibc-1a6566094d3097f4a3037ab5555cddc6cb11c3a3.tar.xz
glibc-1a6566094d3097f4a3037ab5555cddc6cb11c3a3.zip
alpha: force old OSF1 syscalls for getegid, geteuid and getppid [BZ #24986]
On alpha, Linux kernel 5.1 added the standard getegid, geteuid and
getppid syscalls (commit ecf7e0a4ad15287). Up to now alpha was using
the corresponding OSF1 syscalls through:
 - sysdeps/unix/alpha/getegid.S
 - sysdeps/unix/alpha/geteuid.S
 - sysdeps/unix/alpha/getppid.S

When building against kernel headers >= 5.1, the glibc now use the new
syscalls through sysdeps/unix/sysv/linux/syscalls.list. When it is then
used with an older kernel, the corresponding 3 functions fail.

A quick fix is to move the OSF1 wrappers under the
sysdeps/unix/sysv/linux/alpha directory so they override the standard
linux ones. A better fix would be to try the new syscalls and fallback
to the old OSF1 in case the new ones fail. This can be implemented in
a later commit.

Changelog:
	[BZ #24986]
        * sysdeps/unix/alpha/getegid.S: Move to ...
	* sysdeps/unix/sysv/linux/alpha/getegid.S: ... here.
        * sysdeps/unix/alpha/geteuid.S: Move to ...
	* sysdeps/unix/sysv/linux/alpha/geteuid.S: ... here.
        * sysdeps/unix/alpha/getppid.S: Move to ...
	* sysdeps/unix/sysv/linux/alpha/getppid.S: ... here
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/alpha/getegid.S (renamed from sysdeps/unix/alpha/getegid.S)0
-rw-r--r--sysdeps/unix/sysv/linux/alpha/geteuid.S (renamed from sysdeps/unix/alpha/geteuid.S)0
-rw-r--r--sysdeps/unix/sysv/linux/alpha/getppid.S (renamed from sysdeps/unix/alpha/getppid.S)0
3 files changed, 0 insertions, 0 deletions
diff --git a/sysdeps/unix/alpha/getegid.S b/sysdeps/unix/sysv/linux/alpha/getegid.S
index a4a3bf9fed..a4a3bf9fed 100644
--- a/sysdeps/unix/alpha/getegid.S
+++ b/sysdeps/unix/sysv/linux/alpha/getegid.S
diff --git a/sysdeps/unix/alpha/geteuid.S b/sysdeps/unix/sysv/linux/alpha/geteuid.S
index f24980844a..f24980844a 100644
--- a/sysdeps/unix/alpha/geteuid.S
+++ b/sysdeps/unix/sysv/linux/alpha/geteuid.S
diff --git a/sysdeps/unix/alpha/getppid.S b/sysdeps/unix/sysv/linux/alpha/getppid.S
index bbbbff763e..bbbbff763e 100644
--- a/sysdeps/unix/alpha/getppid.S
+++ b/sysdeps/unix/sysv/linux/alpha/getppid.S