[tor-bugs] #13605 [Core Tor/Tor]: Create a client/relay-side ReducedExitPolicy
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Sep 7 02:14:35 UTC 2017
#13605: Create a client/relay-side ReducedExitPolicy
----------------------------------------------+----------------------------
Reporter: mikeperry | Owner: (none)
Type: enhancement | Status:
| needs_revision
Priority: Medium | Milestone: Tor:
| unspecified
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: tor-relay, easy, review-group-18 | Actual Points:
Parent ID: | Points: medium
Reviewer: | Sponsor:
----------------------------------------------+----------------------------
Comment (by teor):
Apart from unit tests, these two things need to be changed:
The maximum exit policy is now `EXIT_POLICY_ADD_REDUCED`.
{{{
#define EXIT_POLICY_REJECT_LOCAL_INTERFACES (1 << 3)
#define EXIT_POLICY_ADD_REDUCED (1 << 4)
#define EXIT_POLICY_OPTION_MAX
EXIT_POLICY_REJECT_LOCAL_INTERFACES
/* All options set: used for unit testing */
#define EXIT_POLICY_OPTION_ALL ((EXIT_POLICY_OPTION_MAX << 1)
- 1)
}}}
Please check all uses of EXIT_POLICY_OPTION_ALL to make sure they still
function as designed.
The last line of the changes file needs a newline, not an escape sequence:
{{{
operator to use a reduced exit policy rather than the default one. Closes\
ticket 13605.
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13605#comment:18>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list