summaryrefslogtreecommitdiff
path: root/source4/lib/basic.mk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-03-28 01:00:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:11:18 -0500
commite91fb065fa83e2ad4e3dacec22f011baf5d3d752 (patch)
tree06113f610f9dfe5a6bc6c87e40400a00fa546f59 /source4/lib/basic.mk
parenta5ee5aae6921b844f142d3a5dd67c188612723d7 (diff)
downloadsamba-e91fb065fa83e2ad4e3dacec22f011baf5d3d752.tar.gz
samba-e91fb065fa83e2ad4e3dacec22f011baf5d3d752.tar.bz2
samba-e91fb065fa83e2ad4e3dacec22f011baf5d3d752.zip
r6088: Add the socket_wrapper library. This is a very simple library that
redirects traffic (currently just IP traffic) over unix domain sockets if the SOCKET_WRAPPER_DIR environment variable has been set. Aim is to use this for the Samba4 torture suite on the buildfarm. The socket_wrapper library can only be used if Samba was compiled with --enable-developer. test_rpc.sh passes against a local smbd with SOCKET_WRAPPER_DIR set. (and ethereal showed no traffic whatsoever) Stuff that still needs to be fixed in socketwrapper: - Give ENETUNREACH if target is not localhost - A given port number can only be used for UDP /or/ TCP, not both. - Perhaps allow some calls to circumvent socketwrapper (do we need DNS?) (This used to be commit f8a63a843ccca092d9756b64e09175d37c08550a)
Diffstat (limited to 'source4/lib/basic.mk')
-rw-r--r--source4/lib/basic.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/source4/lib/basic.mk b/source4/lib/basic.mk
index 7d6847c465..560234a00c 100644
--- a/source4/lib/basic.mk
+++ b/source4/lib/basic.mk
@@ -33,6 +33,14 @@ ADD_OBJ_FILES = \
##############################
##############################
+# Start SUBSYSTEM SOCKET_WRAPPER
+[SUBSYSTEM::SOCKET_WRAPPER]
+NOPROTO = YES
+INIT_OBJ_FILES = lib/socket_wrapper.o
+# End SUBSYSTEM SOCKET_WRAPPER
+##############################
+
+##############################
# Start SUBSYSTEM LIBBASIC
[SUBSYSTEM::LIBBASIC]
INIT_OBJ_FILES = lib/version.o
@@ -68,7 +76,8 @@ ADD_OBJ_FILES = \
lib/gendb.o \
lib/credentials.o
REQUIRED_SUBSYSTEMS = \
- LIBLDB CHARSET LIBREPLACE LIBNETIF LIBCRYPTO EXT_LIB_DL LIBTALLOC
+ LIBLDB CHARSET LIBREPLACE LIBNETIF LIBCRYPTO EXT_LIB_DL LIBTALLOC \
+ SOCKET_WRAPPER
# End SUBSYSTEM LIBBASIC
##############################