Skip to content

Commit

Permalink
gpkg/glibc: fix syscall setfsuid and setfsgid (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxython authored Sep 9, 2023
1 parent 5774bc8 commit c8e3e14
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 15 deletions.
11 changes: 11 additions & 0 deletions gpkg/glibc/Makefile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- glibc-2.38/sysdeps/unix/sysv/linux/Makefile 2023-07-31 20:54:16.000000000 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/Makefile.patch 2023-09-09 00:40:40.109180943 +0300
@@ -94,8 +94,6 @@
process_vm_writev \
pselect32 \
readahead \
- setfsgid \
- setfsuid \
signalfd \
splice \
sysctl \
14 changes: 9 additions & 5 deletions gpkg/glibc/aarch64-arch-syscall.h.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- glibc-2.38/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h 2023-02-01 06:27:45.000000000 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h.patch 2023-07-03 20:19:34.607208458 +0300
--- glibc-2.38/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h 2023-07-31 20:54:16.000000000 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/aarch64/arch-syscall.h.patch 2023-09-09 00:41:22.799180926 +0300
@@ -1,5 +1,4 @@
/* AUTOGENERATED by update-syscall-lists.py. */
-#define __NR_accept 202
Expand Down Expand Up @@ -30,15 +30,19 @@
#define __NR_rt_sigaction 134
#define __NR_rt_sigpending 136
#define __NR_rt_sigprocmask 135
@@ -237,7 +233,6 @@
@@ -237,11 +233,8 @@
#define __NR_sendto 206
#define __NR_set_mempolicy 237
#define __NR_set_mempolicy_home_node 450
-#define __NR_set_robust_list 99
#define __NR_set_tid_address 96
#define __NR_setdomainname 162
#define __NR_setfsgid 152
@@ -270,7 +265,6 @@
-#define __NR_setfsgid 152
-#define __NR_setfsuid 151
#define __NR_setgid 144
#define __NR_setgroups 159
#define __NR_sethostname 161
@@ -270,7 +263,6 @@
#define __NR_socketpair 199
#define __NR_splice 76
#define __NR_statfs 43
Expand Down
13 changes: 10 additions & 3 deletions gpkg/glibc/arm-arch-syscall.h.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- glibc-2.38/sysdeps/unix/sysv/linux/arm/arch-syscall.h 2023-07-31 20:54:16.000000000 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/arm/arch-syscall.h.patch 2023-08-03 18:02:02.376156803 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/arm/arch-syscall.h.patch 2023-09-09 00:41:03.659180934 +0300
@@ -2,7 +2,6 @@
#define __NR__llseek 140
#define __NR__newselect 142
Expand Down Expand Up @@ -71,15 +71,22 @@
#define __NR_sendfile 187
#define __NR_sendfile64 239
#define __NR_sendmmsg 374
@@ -303,7 +293,6 @@
@@ -303,14 +293,9 @@
#define __NR_sendto 290
#define __NR_set_mempolicy 321
#define __NR_set_mempolicy_home_node 450
-#define __NR_set_robust_list 338
#define __NR_set_tid_address 256
#define __NR_set_tls 983045
#define __NR_setdomainname 121
@@ -355,7 +344,6 @@
-#define __NR_setfsgid 139
-#define __NR_setfsgid32 216
-#define __NR_setfsuid 138
-#define __NR_setfsuid32 215
#define __NR_setgid 46
#define __NR_setgid32 214
#define __NR_setgroups 81
@@ -355,7 +340,6 @@
#define __NR_stat64 195
#define __NR_statfs 99
#define __NR_statfs64 266
Expand Down
2 changes: 1 addition & 1 deletion gpkg/glibc/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="GNU C Library"
TERMUX_PKG_LICENSE="GPL-3.0, LGPL-3.0"
TERMUX_PKG_MAINTAINER="@termux-pacman"
TERMUX_PKG_VERSION=2.38
TERMUX_PKG_REVISION=1
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://ftp.gnu.org/gnu/libc/glibc-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=fb82998998b2b29965467bc1b69d152e9c307d2cf301c9eafb4555b770ef3fd2
TERMUX_PKG_DEPENDS="linux-api-headers-glibc"
Expand Down
13 changes: 10 additions & 3 deletions gpkg/glibc/i386-arch-syscall.h.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- glibc-2.38/sysdeps/unix/sysv/linux/i386/arch-syscall.h 2023-07-31 20:54:16.000000000 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/i386/arch-syscall.h.patch 2023-08-03 18:01:46.346156809 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/i386/arch-syscall.h.patch 2023-09-09 00:41:39.579180920 +0300
@@ -18,7 +18,6 @@
#define __NR_capget 184
#define __NR_capset 185
Expand Down Expand Up @@ -47,15 +47,22 @@
#define __NR_rt_sigaction 174
#define __NR_rt_sigpending 176
#define __NR_rt_sigprocmask 175
@@ -324,7 +317,6 @@
@@ -324,14 +317,9 @@
#define __NR_sendto 369
#define __NR_set_mempolicy 276
#define __NR_set_mempolicy_home_node 450
-#define __NR_set_robust_list 311
#define __NR_set_thread_area 243
#define __NR_set_tid_address 258
#define __NR_setdomainname 121
@@ -380,7 +372,6 @@
-#define __NR_setfsgid 139
-#define __NR_setfsgid32 216
-#define __NR_setfsuid 138
-#define __NR_setfsuid32 215
#define __NR_setgid 46
#define __NR_setgid32 214
#define __NR_setgroups 81
@@ -380,7 +368,6 @@
#define __NR_stat64 195
#define __NR_statfs 99
#define __NR_statfs64 268
Expand Down
11 changes: 8 additions & 3 deletions gpkg/glibc/x86_64-arch-syscall.h.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- glibc-2.38/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h 2023-07-31 20:54:16.000000000 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h.patch 2023-08-03 18:01:26.526156817 +0300
+++ glibc-2.38/sysdeps/unix/sysv/linux/x86_64/64/arch-syscall.h.patch 2023-09-09 00:42:10.549180908 +0300
@@ -1,6 +1,5 @@
/* AUTOGENERATED by update-syscall-lists.py. */
#define __NR__sysctl 156
Expand Down Expand Up @@ -48,15 +48,20 @@
#define __NR_rt_sigaction 13
#define __NR_rt_sigpending 127
#define __NR_rt_sigprocmask 14
@@ -279,7 +272,6 @@
@@ -279,12 +272,9 @@
#define __NR_sendto 44
#define __NR_set_mempolicy 238
#define __NR_set_mempolicy_home_node 450
-#define __NR_set_robust_list 273
#define __NR_set_thread_area 205
#define __NR_set_tid_address 218
#define __NR_setdomainname 171
@@ -315,7 +307,6 @@
-#define __NR_setfsgid 123
-#define __NR_setfsuid 122
#define __NR_setgid 106
#define __NR_setgroups 116
#define __NR_sethostname 170
@@ -315,7 +305,6 @@
#define __NR_splice 275
#define __NR_stat 4
#define __NR_statfs 137
Expand Down

0 comments on commit c8e3e14

Please sign in to comment.