2011-02-27 03:28:50 +03:00
# Automake input for strace tests.
2013-05-08 03:32:01 +04:00
AM_CFLAGS = $( WARN_CFLAGS)
2014-05-30 01:35:34 +04:00
check_PROGRAMS = \
2014-09-23 04:14:04 +04:00
inet-accept-connect-send-recv \
2014-12-05 03:21:23 +03:00
caps \
2014-11-06 19:23:27 +03:00
mmsg \
2014-05-30 01:35:34 +04:00
net-accept-connect \
2014-09-23 04:14:04 +04:00
netlink_inet_diag \
2014-05-30 01:35:34 +04:00
scm_rights \
set_ptracer_any \
sigaction \
2014-05-14 08:16:29 +04:00
stack-fcall \
2014-09-22 02:42:45 +04:00
statfs \
2014-12-13 21:24:13 +03:00
uid \
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.
2014-12-14 00:49:01 +03:00
uid16 \
2014-12-13 21:24:13 +03:00
uid32 \
2014-05-30 01:35:34 +04:00
uio
2014-04-17 03:28:29 +04:00
2014-09-22 02:42:45 +04:00
statfs_CFLAGS = $( AM_CFLAGS) -D_FILE_OFFSET_BITS= 64
2014-04-17 03:28:29 +04:00
uio_CFLAGS = $( AM_CFLAGS) -D_FILE_OFFSET_BITS= 64
2014-06-17 01:45:52 +04:00
stack_fcall_SOURCES = stack-fcall.c \
stack-fcall-0.c stack-fcall-1.c stack-fcall-2.c stack-fcall-3.c
2013-05-08 03:32:01 +04:00
2014-02-02 19:20:11 +04:00
TESTS = \
ptrace_setoptions.test \
strace-f.test \
qual_syscall.test \
2014-12-05 03:21:23 +03:00
caps.test \
2014-09-10 04:07:32 +04:00
getdents.test \
2014-05-30 01:35:34 +04:00
scm_rights-fd.test \
2014-02-02 19:20:11 +04:00
sigaction.test \
stat.test \
2014-09-22 02:42:45 +04:00
statfs.test \
2014-11-06 19:23:27 +03:00
mmsg.test \
2014-02-02 19:20:11 +04:00
net.test \
Add decoding of sockets descriptor 'paths' for network calls
* net.c (sys_bind, sys_listen, do_accept, sys_send, sys_sendto,
sys_sendmsg, sys_sendmmsg, sys_recv, sys_recvfrom, sys_recvmsg,
sys_recvmmsg, sys_shutdown, sys_getsockopt, sys_setsockopt): Decode
socket descriptor arguments using printfd.
* pathtrace.c (pathtrace_match): Also check TRACE_NETWORK syscalls
that take socket descriptor arguments.
* tests/net-fd.test: New test for socket descriptor arguments decoding.
* tests/Makefile.am (TESTS): Add net-fd.test.
(net-fd.log): New dependency on net.log.
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2014-02-01 21:57:45 +04:00
net-fd.test \
2014-09-23 04:14:04 +04:00
net-yy.test \
2014-12-24 14:59:32 +03:00
unix-yy.test \
2014-12-13 21:24:13 +03:00
uid.test \
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.
2014-12-14 00:49:01 +03:00
uid16.test \
2014-12-13 21:24:13 +03:00
uid32.test \
2014-04-17 03:28:29 +04:00
uio.test \
2014-05-30 01:14:14 +04:00
count.test \
2014-02-02 19:20:11 +04:00
detach-sleeping.test \
detach-stopped.test \
2014-05-14 08:16:29 +04:00
detach-running.test \
strace-k.test
2011-02-27 03:28:50 +03:00
Add decoding of sockets descriptor 'paths' for network calls
* net.c (sys_bind, sys_listen, do_accept, sys_send, sys_sendto,
sys_sendmsg, sys_sendmmsg, sys_recv, sys_recvfrom, sys_recvmsg,
sys_recvmmsg, sys_shutdown, sys_getsockopt, sys_setsockopt): Decode
socket descriptor arguments using printfd.
* pathtrace.c (pathtrace_match): Also check TRACE_NETWORK syscalls
that take socket descriptor arguments.
* tests/net-fd.test: New test for socket descriptor arguments decoding.
* tests/Makefile.am (TESTS): Add net-fd.test.
(net-fd.log): New dependency on net.log.
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2014-02-01 21:57:45 +04:00
net-fd.log : net .log
2014-02-02 19:20:11 +04:00
TEST_LOG_COMPILER = $( srcdir) /run.sh
2013-06-18 19:28:47 +04:00
2014-09-23 04:14:04 +04:00
EXTRA_DIST = init.sh run.sh \
2014-12-05 03:21:23 +03:00
caps.awk \
2014-09-23 04:14:04 +04:00
getdents.awk \
2014-11-06 19:23:27 +03:00
mmsg.expected \
2014-09-23 04:14:04 +04:00
net-yy-accept.awk \
net-yy-connect.awk \
sigaction.awk \
2014-12-13 21:24:13 +03:00
uid.awk \
2014-12-24 14:59:32 +03:00
unix-yy-accept.awk \
unix-yy-connect.awk \
2014-09-23 04:14:04 +04:00
$( TESTS)
2011-02-27 03:28:50 +03:00
2013-06-18 17:35:29 +04:00
CLEANFILES = $( TESTS:= .tmp)