[tbb-bugs] #20283 [Applications/Tor Browser]: Tor Browser should run without a `/proc` filesystem.
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri Apr 6 21:31:10 UTC 2018
#20283: Tor Browser should run without a `/proc` filesystem.
--------------------------------------+---------------------------
Reporter: yawning | Owner: pospeselr
Type: defect | Status: assigned
Priority: Medium | Milestone:
Component: Applications/Tor Browser | Version:
Severity: Normal | Resolution:
Keywords: tbb-sandboxing | Actual Points:
Parent ID: #20773 | Points:
Reviewer: | Sponsor:
--------------------------------------+---------------------------
Comment (by cypherpunks):
From conversation with pospeselr:
I suspect that glibc relies on /proc only for the initial thread. It is
possible that for the initial thread you can get the stack base address
and size using getcontext(2). In particular, if pthread_getattr_np fails
or pthread_attr_getstack returns null, and the thread in question is the
process's initial thread, then it is possible that
{{{
ucontext_t uc;
void *base;
size_t size;
if (getcontext(&uc) == -1)
err(1, "getcontext");
base = uc.uc_stack.ss_sp;
size = uc.uc_stack.ss_size;
}}}
will recover the stack base address and size that you want.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20283#comment:16>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tbb-bugs
mailing list