Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |
| | ||||||
* | swrap: Add libc_recv(). | Andreas Schneider | 2013-12-10 | 1 | -2/+9 | |
| | ||||||
* | swrap: Add libc_recvfrom(). | Andreas Schneider | 2013-12-10 | 1 | -12/+24 | |
| | ||||||
* | swrap: Add libc_readv(). | Andreas Schneider | 2013-12-09 | 1 | -2/+9 | |
| | ||||||
* | swrap: Add libc_read(). | Andreas Schneider | 2013-12-09 | 1 | -2/+9 | |
| | ||||||
* | swrap: Add libc_listen(). | Andreas Schneider | 2013-12-09 | 1 | -2/+9 | |
| | ||||||
* | swrap: Correctly load ioctl(). | Andreas Schneider | 2013-12-09 | 1 | -0/+2 | |
| | ||||||
* | squash swrap_load_lib_handle | Andreas Schneider | 2013-12-09 | 1 | -2/+2 | |
| | ||||||
* | swrap: Add libc_getsockopt(). | Andreas Schneider | 2013-12-09 | 1 | -10/+21 | |
| | ||||||
* | swrap: Add libc_getsockname(). | Andreas Schneider | 2013-12-09 | 1 | -4/+13 | |
| |