summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Iphone Support - Patch by Marco BonettiiphoneRobert Hogan2010-08-07
| | | | Allow torsocks to compile on jailbroken iphones.
* Merge branch 'osx'Robert Hogan2010-06-20
|\
| * autoreconf -fivRobert Hogan2010-06-20
| |
| * Remove torsocks.kdevelopmwenge2009-12-14
| |
| * Fix compilation in 64-bit OSX.mwenge2009-09-19
| |
| * Update autoconf toolchain after autoreconf -fivmwenge2009-08-15
| |
| * Mac OSX compatibility in tsocks.cmwenge2009-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original Patch from Alex Rosenberg <alex@ohmantics.com> 1. Hook OSX-specific syscalls ----------------------------- Mac OXS has a number of variants of each syscall. This patch adds hooks for the following OSX variants: select() : select_unix2003() select_nocancel() select_darwinextsn_nocancel() select_darwinextsn() poll(), connect(), sendmsg(), sendto(), close(): *_unix2003(), *_nocancel() getpeername(): *_unix2003() 2. Add Hooking Macros -------------------- Move the symbol loading and checking out to macros of the form [syscall]_PATCH: PATCH_SELECT, PATCH_CONNECT, PATCH_CLOSE, PATCH_POLL, PATCH_GETPEERNAME, PATCH_SENDTO, PATCH_SENDMSG Rename the syshooks to functions of the form *_guts(). 3. Miscellaneous ---------------- Add NONSTD_SOURCE define for Mac OSX.Defining _NONSTD_SOURCE causes library and kernel calls to behave as closely to Mac OS X 10.3's library and kernel calls as possible. Use socklen_t instead of int. Move get_environment() and get_config() to tsocks_init(), rather than calling adhoc in the syscalls. Differentiate between EISCONN and EINPROGRESS errors in connect(). Original Patch from Alex Rosenberg <alex@ohmantics.com> http://code.google.com/p/torsocks/issues/detail?id=2#c11
| * Patch torsocks.in for Mac OSXmwenge2009-08-15
| | | | | | | | | | | | | | | | | | | | | | | | | | Patch from alexr@ohmantics.com Mac OSX uses the DYLD_INSERT_LIBRARIES and DYLD_FORCE_FLAT_NAMESPACE environment variables to enable/perform syscall-hooking. Also, on Mac OSX dynamically linked libraries use the '*.dylib' extension rather than '*.so'. Alex's patches for torsocks.in and configure.in ensure that we use the appropriate values for Max OSX. Ideally, we wouldn't export DYLD_FORCE_FLAT_NAMESPACE on non-Mac OSX platforms but it is harmless to do so. We'll leave that for another day. The patch also fixes up the sed reg-exp to interpret the 'echo DYLD_INSERT_LIBRARIES' output as well as that from LD_PRELOAD.
| * Whitespace cleanup in parser.cmwenge2009-08-15
| |
| * Add linker checks for Mac OSXmwenge2009-08-15
| | | | | | | | Patch from alexr@ohmantics.com
* | Do our best to ensure tsocks_init is called only once.Robert Hogan2010-06-20
| |
* | Update automake toolchainRobert Hogan2010-06-20
| | | | | | | | | | | | Update the automake toolchain with 'autoreconf -fiv'. This is necessary to allow most users to build with the latest version of automake, autoconf etc.
* | Build fix for BSD.mwenge2009-12-14
| | | | | | | | Support presence of res_query in libc rather than libresolve.
* | Remove non-free RFC and replace with link.mwenge2009-11-28
| |
* | Manpage syntax fixes from Patrick Matthäi <pmatthaei@debian.org>mwenge2009-11-08
| |
* | Remove kdevelop project filemwenge2009-09-26
| |
* | Clarify use of the configuration file.mwenge2009-09-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Amend the default behaviour to work as summarized below and updated the manual pages to make the default behaviour obvious to users. "By default, torsocks will assume that it should connect to the SOCKS proxy running at 127.0.0.1 on port 9050. This is the default address and port for Tor's socks server on most installations. In order to use a configuration file, you must set the environment variable TORSOCKS_CONF_FILE with the location of the file. If TORSOCKS_CONF_FILE is not set, torsocks will attempt to read the configuration file at @CONFDIR@/torsocks.conf. If that file cannot be read, torsocks will use sensible defaults for most Tor installations, i.e. it will assume that you want to use a SOCKS proxy running at 127.0.0.1 (localhost) on port 9050."
* | Update automake toolchainmwenge2009-09-21
|/ | | | | | Update the automake toolchain with 'autoreconf -fiv'. This is necessary to allow most users to build with the latest version of automake, autoconf etc.
* Move MAP_ANONYMOUS to common.hmwenge2009-08-15
|
* LD_PRELOAD is ignored for binaries where setuid/gid is used. As used,mwenge2009-06-16
| | | | | | | | | | | | | torsocks doesn't detect this, which means that it provides a false sense of security when running these types of executables. Added logic that detects setuid/setgid programs and fails early with an error message. Further reorganized the file to simplify flow and improve command line argument handling. Patch by Marcus Griep <marcus@griep.us>
* remove aclocal.m4mwenge2009-06-16
|
* BSD build patch from grarpamp. See ↵mwenge2009-05-30
| | | | http://code.google.com/p/torsocks/issues/detail?id=4.
* Replace TSOCKS_* environment variables with TORSOCKS_* equivalents as per ↵mwenge2009-05-30
| | | | man page.
* Remove superfluous include.mwenge2009-05-30
|
* Fix compilcation on Mac OSX. See ↵mwenge2009-05-30
| | | | http://code.google.com/p/torsocks/issues/detail?id=2
* Expand reject message for UDP and ICMP requestsmwenge2009-05-30
|
* update docs, remove a comment or two, last svn commit before git conversion ↵robert@roberthogan.net2009-05-09
| | | | | | - hopefully git-svn-id: https://torsocks.googlecode.com/svn/trunk@101 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* Handle wildcards in getaddrinfo, reported by Mike Perryrobert@roberthogan.net2009-02-20
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@100 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* Fix segfault reported by Mike Perryrobert@roberthogan.net2009-02-20
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@99 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* typorobert@roberthogan.net2009-02-07
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@97 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* Add carriage returnrobert@roberthogan.net2009-02-07
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@96 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* git-svn-id: https://torsocks.googlecode.com/svn/trunk@95 ↵robert@roberthogan.net2009-02-07
| | | | 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* git-svn-id: https://torsocks.googlecode.com/svn/trunk@94 ↵robert@roberthogan.net2009-02-07
| | | | 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* git-svn-id: https://torsocks.googlecode.com/svn/trunk@93 ↵robert@roberthogan.net2009-02-07
| | | | 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* git-svn-id: https://torsocks.googlecode.com/svn/trunk@92 ↵robert@roberthogan.net2009-02-07
| | | | 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* Update TODOrobert@roberthogan.net2009-02-07
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@91 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* only load res_ calls if supportedrobert@roberthogan.net2009-02-07
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@90 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* only load res_ calls if supportedrobert@roberthogan.net2009-02-07
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@89 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* Fix calls in previous commitrobert@roberthogan.net2009-02-07
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@88 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* Ignore non-INET streams. Reject INET UDP streams. We were previously ↵robert@roberthogan.net2009-02-07
| | | | | | rejecting anything that wasn't an INET stream, this prevented connect calls of the PF_FILE type. Is there a security issue here - applications bypassing TCP to leak user info? git-svn-id: https://torsocks.googlecode.com/svn/trunk@87 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* git-svn-id: https://torsocks.googlecode.com/svn/trunk@86 ↵robert@roberthogan.net2009-02-03
| | | | 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* Reject all UDP streams, even with a local destination. This is because many ↵robert@roberthogan.net2009-02-01
| | | | | | (a)dsl users use their router as their nameserver git-svn-id: https://torsocks.googlecode.com/svn/trunk@85 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* add all rfc local subnets to torsocks.confrobert@roberthogan.net2009-02-01
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@84 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* Whitespaces fixes and re-add program name to debug loggingrobert@roberthogan.net2009-02-01
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@83 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* Ensure RFC subnets always treated as local regardless of configrobert@roberthogan.net2009-02-01
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@82 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* Support for res_search, res_send, res_querydomainrobert@roberthogan.net2009-02-01
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@81 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* configuration support fore res_* APIrobert@roberthogan.net2009-02-01
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@80 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* Add support for res_queryrobert@roberthogan.net2009-02-01
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@79 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* unit test for resinitrobert@roberthogan.net2009-02-01
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@78 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
* Add more info to torsocks.confrobert@roberthogan.net2009-02-01
| | | | git-svn-id: https://torsocks.googlecode.com/svn/trunk@77 2b4a61ce-a206-11dd-9a14-c1645b63b0c6