| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | swrap: Correctly set the bind iface address on connect(). | Andreas Schneider | 2014-05-08 | 1 | -0/+57 |
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | swrap: use LIBC_SO from GNU libc, if available | Pino Toscano | 2014-05-08 | 1 | -0/+8 |
| | | | | | | | | | | Look for gnu/lib-names.h and use the LIBC_SO define to dlopen libc, so the right library is loaded without manually searching for libc.so.N. Signed-off-by: Pino Toscano <toscano.pino@tiscali.it> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | swrap: Fall back to RTLD_NEXT if we can't find libc. | Andreas Schneider | 2014-05-05 | 1 | -4/+4 |
| | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=10572 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | Fix some typos. | Jakub Wilk | 2014-05-05 | 1 | -4/+4 |
| | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=10566 Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | swrap: Use the loaded libc open() directly. | Andreas Schneider | 2014-04-25 | 1 | -2/+14 |
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> | ||||
| * | swrap: Do not leak memory in swrap_recvmsg_after(). | Andreas Schneider | 2014-04-14 | 1 | -3/+4 |
| | | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Simo Sorce <idra@samba.org> | ||||
| * | src: Add a public socket_wrapper_enabled() function.socket_wrapper-1.0.0 | Andreas Schneider | 2014-02-01 | 1 | -1/+9 |
| | | | | | Reviewed-by: Jeremy Allison <jra@samba.org> | ||||
| * | src: Fix va arg passing in open(). | Andreas Schneider | 2014-01-29 | 1 | -7/+15 |
| | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Handle stale fds in dup() and dup2(). | Andreas Schneider | 2014-01-28 | 1 | -0/+6 |
| | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Add timerfd_create() to handle stale fds. | Andreas Schneider | 2014-01-28 | 1 | -0/+38 |
| | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Add eventfd() to handle stale fds. | Andreas Schneider | 2014-01-28 | 1 | -0/+38 |
| | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Add signalfd() to handle stale fds. | Andreas Schneider | 2014-01-28 | 1 | -0/+38 |
| | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Add socketpair() to handle stale fds. | Andreas Schneider | 2014-01-28 | 1 | -0/+30 |
| | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Add pipe() to handle stale fds. | Andreas Schneider | 2014-01-28 | 1 | -0/+30 |
| | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Check for stale fds in swrap_accept(). | Andreas Schneider | 2014-01-28 | 1 | -0/+4 |
| | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Check for stale fds in swrap_socket(). | Andreas Schneider | 2014-01-28 | 1 | -1/+9 |
| | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Handle stale fds in swrap_recvmsg_after(). | Andreas Schneider | 2014-01-28 | 1 | -9/+16 |
| | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Handle stale fds in swrap_sendmsg_after(). | Andreas Schneider | 2014-01-28 | 1 | -7/+13 |
| | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Try to recover when reading from a fd returns ENOTSOCK. | Nalin Dahyabhai | 2014-01-28 | 1 | -8/+25 |
| | | | | | | | | | | When attempting to read from a descriptor, if an underlying autobind fails because it's not a socket, stop intercepting uses of that descriptor. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Try to recover when writing to fd returns ENOTSOCK. | Nalin Dahyabhai | 2014-01-28 | 1 | -9/+32 |
| | | | | | | | | | | When attempting to write to a descriptor, if an underlying autobind fails because it's not a socket, stop intercepting uses of that descriptor. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Try to recover when sockets are closed elsewhere. | Nalin Dahyabhai | 2014-01-28 | 1 | -0/+61 |
| | | | | | | | | | | | | There are methods for closing descriptors (libc-internal code paths, direct syscalls) which close descriptors in ways that we can't intercept, so try to recover when we notice that that's happened: * If we see a descriptor being handed back from open() that we thought was a socket, stop intercepting uses of that descriptor. Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Use swrap_recvmsg_(before|after) for swrap_readv(). | Andreas Schneider | 2014-01-28 | 1 | -53/+27 |
| | | | | | Reviewed-by: Stefan Metzmacher <metze@samba.org> | ||||
| * | src: Fix warnings on Solaris. | Andreas Schneider | 2014-01-21 | 1 | -5/+7 |
| | | |||||
| * | src: Initialize sockaddr_un. | Andreas Schneider | 2014-01-21 | 1 | -1/+1 |
| | | | | | Fixes a valgrind warning. | ||||
| * | src: Make sure the memory is zeroed. | Andreas Schneider | 2014-01-21 | 1 | -1/+4 |
| | | |||||
| * | src: Case pid_t to an int in SWRAP_LOG. | Andreas Schneider | 2014-01-21 | 1 | -16/+8 |
| | | |||||
| * | src: Fix setting the temp iovec. | Andreas Schneider | 2014-01-21 | 1 | -9/+9 |
| | | |||||
| * | src: Fix build on Solaris. | Andreas Schneider | 2014-01-21 | 1 | -18/+32 |
| | | |||||
| * | src: Fix build warnings on FreeBSD. | Andreas Schneider | 2014-01-21 | 1 | -8/+8 |
| | | |||||
| * | swrap: Implement recvmsg(). | Andreas Schneider | 2014-01-20 | 1 | -1/+50 |
| | | |||||
| * | swrap: Fix DGRAM in swrap_recvmsg(before|after). | Andreas Schneider | 2014-01-20 | 1 | -30/+74 |
| | | |||||
| * | swrap: Use swrap_recvmsg_* in swrap_read(). | Stefan Metzmacher | 2014-01-20 | 1 | -10/+28 |
| | | |||||
| * | swrap: Use swrap_recvmsg_* in swrap_recv(). | Stefan Metzmacher | 2014-01-20 | 1 | -10/+28 |
| | | |||||
| * | swrap: Use swrap_recvmsg_* in swrap_recvfrom(). | Stefan Metzmacher | 2014-01-20 | 1 | -9/+30 |
| | | |||||
| * | swrap: Add swrap_recvmsg_after(). | Stefan Metzmacher | 2014-01-20 | 1 | -0/+78 |
| | | |||||
| * | swrap: Add swrap_recvmsg_before(). | Stefan Metzmacher | 2014-01-20 | 1 | -0/+49 |
| | | |||||
| * | swrap: Fix loading of system libraries. | Andreas Schneider | 2013-12-20 | 1 | -4/+2 |
| | | |||||
| * | swrap: Add documentation for SOCK_CLOEXEC in socket(). | Andreas Schneider | 2013-12-19 | 1 | -0/+6 |
| | | |||||
| * | swrap: Don't build with swrap_str_lib() if NDEBUG is defined. | Andreas Schneider | 2013-12-12 | 1 | -0/+2 |
| | | | | | This fixes a compile warning on optimized builds. | ||||
| * | Fix formatting of variables of type pid_t | Jakub Hrozek | 2013-12-11 | 1 | -4/+12 |
| | | |||||
| * | logging: log creating the sockets | Jakub Hrozek | 2013-12-11 | 1 | -0/+31 |
| | | |||||
| * | logging: Add logging when loading system functions | Jakub Hrozek | 2013-12-11 | 1 | -2/+20 |
| | | | | | Also fix some whitespace errors | ||||
| * | cmake: Detect attribute format | Jakub Hrozek | 2013-12-11 | 1 | -2/+2 |
| | | |||||
| * | swrap: Remove obsolete init functions. | Andreas Schneider | 2013-12-10 | 1 | -149/+1 |
| | | | | | This fixes preloading libsocket_wrapper.so with gdb. | ||||
| * | swrap: Add libc_writev(). | Andreas Schneider | 2013-12-10 | 1 | -2/+9 |
| | | |||||
| * | swrap: Add libc_socket(). | Andreas Schneider | 2013-12-10 | 1 | -3/+10 |
| | | |||||
| * | swrap: Add libc_setsockopt(). | Andreas Schneider | 2013-12-10 | 1 | -10/+21 |
| | | |||||
| * | swrap: Add libc_sendto(). | Andreas Schneider | 2013-12-10 | 1 | -13/+25 |
| | | |||||
| * | swrap: Add libc_sendmsg(). | Andreas Schneider | 2013-12-10 | 1 | -3/+10 |
| | | |||||
| * | swrap: Add libc_send(). | Andreas Schneider | 2013-12-10 | 1 | -2/+9 |
| | | |||||
