68804b326709fadc7bb03f510a11771f07216a59 |
|
16-Mar-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
tests/uid*: use fchown* instead of chown* Newer architectures have no chown syscall, so use fchown* syscalls for testing printuid. * tests/uid.test: Use fchown instead of chown. * tests/uid.c: Test __NR_fchown instead of __NR_chown. (main): Use __NR_fchown instead of __NR_chown. * tests/uid32.c: Test __NR_fchown32 instead of __NR_chown32. (main): Use __NR_fchown32 instead of __NR_chown32. * tests/uid16.c: Test __NR_fchown and __NR_fchown32 instead of __NR_chown and __NR_chown32. (main): Use __NR_fchown instead of __NR_chown. * tests/uid.awk: Update regexp.
/external/strace/tests/uid16.c
|
77e0d2dccc2487923325571f02cba5c377d5bb9a |
|
02-Mar-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
tests/uid16: skip if real uid is larger than 16bit * tests/uid16.c (main): Skip if the uid returned by getuid matches /proc/sys/kernel/overflowuid.
/external/strace/tests/uid16.c
|
3a15bc8adf3031b474a81e1c672c11817c8ee8f0 |
|
02-Mar-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
tests: fix uid tests on big endian architectures * tests/uid.c (main): Ignore uids returned by getresuid to avoid 16bit vs 32bit issues on big endian architectures. Change real UID instead of effective UID in setresuid test. * tests/uid16.c (main): Likewise. * tests/uid32.c (main): Change real UID instead of effective UID in setresuid test to match uid.c * tests/uid.awk: Update setresuid regexp. Reported-by: Mike Frysinger <vapier@gentoo.org>
/external/strace/tests/uid16.c
|
530bed0ca8285188ce6cbc9406e817da0ef4828b |
|
14-Dec-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix decoding of getgroups, getgroups32, setgroups, and setgroups32 syscalls Convert parsers of these syscalls to the same scheme as were applied to parsers of other uid/gid related syscalls. That is, define two sets of parsers on architectures that support (either directly or via multiarch) 16-bit and 32-bit gid getgroups and setgroups syscalls simultaneously, and reuse essentially the same code by parametrizing uid_t and names of parser functions. * groups.c: Remove. (sys_getgroups, sys_setgroups): Move ... * uid.c: ... here and parametrize their names. * Makefile.am (strace_SOURCES): Remove groups.c. * linux/syscall.h (sys_getgroups32, sys_setgroups32): Remove. [NEED_UID16_PARSERS] (sys_getgroups16, sys_setgroups16): New prototypes. * linux/arm/syscallent.h: Rename sys_[gs]etgroups to sys_[gs]etgroups16, rename sys_[gs]etgroups32 to sys_[gs]etgroups. * linux/bfin/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * tests/uid.c: Test for getgroups. * tests/uid16.c: Likewise. * tests/uid32.c: Test for getgroups32. * tests/uid.awk: Test for getgroups/getgroups32 decoding. * tests/uid.test: Trace getgroups/getgroups32 syscalls.
/external/strace/tests/uid16.c
|
80f7db1fedefedb01cd2ce3107dfc264eab50601 |
|
13-Dec-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix decoding of 16-bit *chown and [gs]et*[gu]id syscalls Define two sets of parsers on architectures that support (either directly or via multiarch) 16-bit and 32-bit uid/gid syscalls simultaneously. Since the code in these two sets is essentially the same and the key difference between them is the size of uid_t, implement it by parametrizing uid_t and names of parser functions. * defs.h (NEED_UID16_PARSERS): New macro. * linux/syscall.h [NEED_UID16_PARSERS] (sys_chown16, sys_fchown16, sys_getresuid16, sys_getuid16, sys_setfsuid16, sys_setresuid16, sys_setreuid16, sys_setuid16): New prototypes. * linux/dummy.h (sys_geteuid16): Alias to sys_getuid16. (sys_getegid16, sys_getgid16, sys_getresgid16, sys_setfsgid16, sys_setgid16, sys_setregid16, sys_setresgid16): Alias to corresponding sys_*uid16 functions. * uid.c: Stop including <asm/posix_types.h>. Parametrize uid_t and names of all exported functions. (get_print_uid): New function. (sys_getresuid): Use it. (printuid): Check for (uid_t) -1. * uid16.c: New file. * Makefile.am (strace_SOURCES): Add it. * linux/arm/syscallent.h: Use sys_chown16, sys_fchown16, sys_getegid16, sys_geteuid16, sys_getgid16, sys_getresgid16, sys_getresuid16, sys_getuid16, sys_setfsgid16, sys_setfsuid16, sys_setgid16, sys_setregid16, sys_setresgid16, sys_setresuid16, sys_setreuid16, and sys_setuid16 parsers for *chown and [gs]et*[gu]id syscall entries. * linux/bfin/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * tests/uid16.c: New file. * tests/uid16.test: New test. * tests/Makefile.am (CHECK_PROGRAMS): Add uid16. (TESTS): Add uid16.test. * tests/.gitignore: Add uid16.
/external/strace/tests/uid16.c
|