[tor-bugs] #24315 [Core Tor/Tor]: sandbox: openat() not handled for all our files

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Nov 16 17:43:58 UTC 2017


#24315: sandbox: openat() not handled for all our files
--------------------------+------------------------------------
 Reporter:  dgoulet       |          Owner:  dgoulet
     Type:  defect        |         Status:  assigned
 Priority:  Medium        |      Milestone:  Tor: 0.3.2.x-final
Component:  Core Tor/Tor  |        Version:
 Severity:  Normal        |     Resolution:
 Keywords:  sandbox       |  Actual Points:
Parent ID:                |         Points:
 Reviewer:                |        Sponsor:
--------------------------+------------------------------------

Comment (by dgoulet):

 Hmmm that glibc source code is kind of _crazy_ but I see that
 `__libc_open()` functions in `sysdeps/unix/sysv/linux/open.c` is calling:

 {{{
   return SYSCALL_CANCEL (openat, AT_FDCWD, file, oflag, mode);
 }}}

 A small test only doing `open()` on a file does call `openat()` and
 nothing else.

 So I assume they did (well at least on glibc 2.26 Ubuntu).

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24315#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list