c7235992dc0c2367eea9fa9f44a037a2b7b99d34 |
|
24-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
printfd: quote pathnames Change printfd() behaviour in show_fd_path mode to quote pathnames the same way printpathn() does. * util.c (printfd): Print non-socket paths using print_quoted_string. * tests/scm_rights-fd.test: Test it. * tests/scm_rights.c: Update.
/external/strace/tests/scm_rights.c
|
b85a7f3b9525a3b4cd84f301b2c7b100348242fe |
|
24-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
Impove struct cmsghdr decoding Print all cmsghdr structures in msg_control array, not just the first one. Change output format to be consistent with other parts of strace where structures and arrays are printed. Implement decoder for SCM_SECURITY message type. * net.c (print_scm_rights, print_scm_creds, print_scm_security): New functions. (printcmsghdr): Use them. Iterate over all members of the array. * xlat/scmvals.in: Add SCM_SECURITY. * tests/scm_rights.c (main): Pass one more descriptor to the receiver. Set SO_PASSCRED on the receiver part. Reserve enough space to receive SCM_CREDENTIALS and SCM_RIGHTS. * tests/scm_rights-fd.test: Update.
/external/strace/tests/scm_rights.c
|
e25fb4fd8eb2ec0962cfac614e85762d7f9dbd38 |
|
30-May-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
tests: fix SCM_RIGHTS test for big-endian systems * tests/scm_rights.c (main): Send zero integer to avoid issues with endianness. * tests/scm_rights-fd.test: Update grep patterns.
/external/strace/tests/scm_rights.c
|
f23b097fc5fdc031dc795c10876d97f31b2826d8 |
|
29-May-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Decode file descriptors passed via SCM_RIGHTS control messages * net.c (printcmsghdr): Print descriptors from SCM_RIGHTS control messages using printfd. * tests/scm_rights.c: New file. * tests/scm_rights-fd.test: New test. * tests/Makefile.am (check_PROGRAMS): Add scm_rights. (TESTS): Add scm_rights-fd.test. * tests/.gitignore: Add scm_rights and uio.
/external/strace/tests/scm_rights.c
|