On Sunday 27 April 2014 10:02 PM, Sunil Mohan wrote:
> On Sunday 27 April 2014 09:29 PM, James Valleroy wrote:
> [...]
>> Is it possible to get the port from /var/lib/tor/state (as we do in
>> the testsuite), and use that to configure the firewall?
>>
>> Otherwise, if it's really necessary for us to pick a random port
>> ourselves, we should probably do that in first-run instead of setup.
> 
> I suppose we could pick up the port from /var/lib/tor/state and it would
> be better than picking one ourselves. We are already setting the basic
> firewall configuration in first-run. Further, first-run runs after tor
> is run. If the information is in tor/state is available immediately
> after tor runs, it would be safe to pick the port number from there.

I just checked for this. The port information needed in
/var/lib/tor/state wasn't available immediately after running tor. It
got populated a bit later. Perhaps it is safer to generate the port
ourselves and set it in configuration.

-- 
Sunil


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Freedombox-discuss mailing list
Freedombox-discuss@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss

Reply via email to