| Commit message (Collapse) | Author | Age |
| |
|
|
| |
Allow torsocks to compile on jailbroken iphones.
|
| |\ |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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 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.
|
| | | |
|
| | |
| |
| |
| | |
Patch from alexr@ohmantics.com
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
Update the automake toolchain with 'autoreconf -fiv'. This is
necessary to allow most users to build with the latest version
of automake, autoconf etc.
|
| | |
| |
| |
| | |
Support presence of res_query in libc rather than libresolve.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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 the automake toolchain with 'autoreconf -fiv'. This is
necessary to allow most users to build with the latest version
of automake, autoconf etc.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| | |
|
| |
|
|
| |
http://code.google.com/p/torsocks/issues/detail?id=4.
|
| |
|
|
| |
man page.
|
| | |
|
| |
|
|
| |
http://code.google.com/p/torsocks/issues/detail?id=2
|
| | |
|
| |
|
|
|
|
| |
- hopefully
git-svn-id: https://torsocks.googlecode.com/svn/trunk@101 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@100 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@99 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@97 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@96 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@91 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@90 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@89 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@88 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
|
|
| |
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
|
| |
|
|
| |
2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
|
|
| |
(a)dsl users use their router as their nameserver
git-svn-id: https://torsocks.googlecode.com/svn/trunk@85 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@84 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@83 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@82 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@81 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@80 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@79 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@78 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|
| |
|
|
| |
git-svn-id: https://torsocks.googlecode.com/svn/trunk@77 2b4a61ce-a206-11dd-9a14-c1645b63b0c6
|