[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #25440 [Core Tor/Tor]: Broken openat syscall in Sandbox mode



#25440: Broken openat syscall in Sandbox mode
-------------------------------------------------+-------------------------
 Reporter:  ageisp0lis                           |          Owner:  nickm
     Type:  defect                               |         Status:
                                                 |  needs_information
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.3.4.x-final
Component:  Core Tor/Tor                         |        Version:  Tor:
                                                 |  0.3.3.3-alpha
 Severity:  Normal                               |     Resolution:
 Keywords:  sandbox, 033-must, regression,       |  Actual Points:
  033-triage-20180326, 033-included-20180326     |
  033-backport, AffectsTails                     |
Parent ID:                                       |         Points:
 Reviewer:                                       |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by Jigsaw52):

 I was wrong. The number of parameters is just strace pretty printing the
 call. The syscall is exactly the same on both cases.

 The problem is related to the constant AT_FDCWD.
 The changes on this branch fixed the problem on my machine:

 https://github.com/Jigsaw52/tor/tree/quick-fix-25440

 It does not work if I only change SCMP_CMP_STR to SCMP_CMP. The cast for
 uint32_t is needed. I do not know why and I think they will break on other
 machines but it seems like a good starting point for a better solution.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25440#comment:16>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs