[tor-bugs] #8795 [Tor]: Make #2077 survivable
Tor Bug Tracker & Wiki
blackhole at torproject.org
Wed May 22 21:30:16 UTC 2013
#8795: Make #2077 survivable
-------------------------------------------------------+--------------------
Reporter: cypherpunks | Owner:
Type: defect | Status: needs_review
Priority: normal | Milestone: Tor: 0.2.4.x-final
Component: Tor | Version: Tor: 0.2.4.12-alpha
Keywords: Tor, Permisson denied, getinfo_helper_dir | Parent:
Points: | Actualpoints:
-------------------------------------------------------+--------------------
Comment(by rransom):
Replying to [comment:11 andrea]:
> Replying to [comment:10 nickm]:
> > gevalt! maybe I'd be better off just making the mmap or write fail by
building a Tor where it always fails.
>
> Yeah, that could work too. Alternately, maybe chown/chmod the file out
from under it so it fails for permission reasons.
That won't work -- file-access permission checks are normally done when a
file is opened, not when a file descriptor is used.
You could fill the filesystem so `write` returns `ENOSPC`, or unplug the
disk so the OS starts reporting real errors immediately. Or just find a
way to test on Windows.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/8795#comment:12>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list