From: Roland McGrath Date: Thu, 13 Nov 2003 22:32:25 +0000 (+0000) Subject: 2003-09-06 Dmitry V. Levin X-Git-Tag: v4.5.18~673 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a44c82af4b7d1b412964881da063ed5aa6e729a4;p=strace 2003-09-06 Dmitry V. Levin * linux/syscallent.h: Better handle getgid32, geteuid32, getegid32, setreuid32, setregid32, getgroups32, setgroups32, fchown32, setresuid32, getresuid32, setresgid32, getresgid32, chown32, setuid32, setgid32, setfsuid32, setfsgid32. * process.c [LINUX]: Define GETGROUPS32_T. * process.c [LINUX] (sys_setgroups32, sys_getgroups32): New functions. * linux/syscall.h (sys_setgroups32, sys_getgroups32): Declare them. --- diff --git a/linux/syscall.h b/linux/syscall.h index 3c668e40..5f5d56e5 100644 --- a/linux/syscall.h +++ b/linux/syscall.h @@ -52,6 +52,7 @@ int sys_setreuid(), sys_setregid(), sys_sigsuspend(); int sys_sigpending(), sys_sethostname(), sys_setrlimit(); int sys_getrlimit(), sys_getrusage(), sys_gettimeofday(); int sys_settimeofday(), sys_getgroups(), sys_setgroups(); +int sys_setgroups32(), sys_getgroups32(); int sys_oldselect(), sys_symlink(), sys_oldlstat(), sys_readlink(); int sys_uselib(), sys_swapon(), sys_reboot(), sys_readdir(); int sys_mmap(), sys_munmap(), sys_truncate(), sys_ftruncate(); diff --git a/linux/syscallent.h b/linux/syscallent.h index ee676ea8..9b2250e0 100644 --- a/linux/syscallent.h +++ b/linux/syscallent.h @@ -246,23 +246,23 @@ { 3, TF, sys_chown, "lchown32" }, /* 198 */ { 0, 0, sys_getuid, "getuid32" }, /* 199 */ - { 0, 0, printargs, "getgid32" }, /* 200 */ - { 0, 0, printargs, "geteuid32" }, /* 201 */ - { 0, 0, printargs, "getegid32" }, /* 202 */ - { 2, 0, printargs, "setreuid32" }, /* 203 */ - { 2, 0, printargs, "setregid32" }, /* 204 */ - { 2, 0, printargs, "getgroups32" }, /* 205 */ - { 2, 0, printargs, "setgroups32" }, /* 206 */ - { 3, 0, printargs, "fchown32" }, /* 207 */ - { 3, 0, printargs, "setresuid32" }, /* 208 */ - { 3, 0, printargs, "getresuid32" }, /* 209 */ - { 3, 0, printargs, "setresgid32" }, /* 210 */ - { 3, 0, printargs, "getresgid32" }, /* 211 */ - { 3, TF, printargs, "chown32" }, /* 212 */ - { 1, 0, printargs, "setuid32" }, /* 213 */ - { 1, 0, printargs, "setgid32" }, /* 214 */ - { 1, 0, printargs, "setfsuid32" }, /* 215 */ - { 1, 0, printargs, "setfsgid32" }, /* 216 */ + { 0, 0, sys_getgid, "getgid32" }, /* 200 */ + { 0, 0, sys_geteuid, "geteuid32" }, /* 201 */ + { 0, 0, sys_geteuid, "getegid32" }, /* 202 */ + { 2, 0, sys_setreuid, "setreuid32" }, /* 203 */ + { 2, 0, sys_setregid, "setregid32" }, /* 204 */ + { 2, 0, sys_getgroups32, "getgroups32" }, /* 205 */ + { 2, 0, sys_setgroups32, "setgroups32" }, /* 206 */ + { 3, 0, sys_fchown, "fchown32" }, /* 207 */ + { 3, 0, sys_setresuid, "setresuid32" }, /* 208 */ + { 3, 0, sys_getresuid, "getresuid32" }, /* 209 */ + { 3, 0, sys_setresgid, "setresgid32" }, /* 210 */ + { 3, 0, sys_getresgid, "getresgid32" }, /* 211 */ + { 3, TF, sys_chown, "chown32" }, /* 212 */ + { 1, 0, sys_setuid, "setuid32" }, /* 213 */ + { 1, 0, sys_setgid, "setgid32" }, /* 214 */ + { 1, 0, sys_setfsuid, "setfsuid32" }, /* 215 */ + { 1, 0, sys_setfsgid, "setfsgid32" }, /* 216 */ { 2, TF, sys_pivotroot, "pivot_root" }, /* 217 */ { 3, 0, printargs, "mincore" }, /* 218 */ { 3, 0, sys_madvise, "madvise" }, /* 219 */