Bug 233736 - net/torsocks: Unsupported syscall errors in version 2.3.0
Summary: net/torsocks: Unsupported syscall errors in version 2.3.0
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL: https://trac.torproject.org/projects/...
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-02 22:02 UTC by Stefan Ehmann
Modified: 2018-12-03 00:25 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (yuri)


Attachments
Attempt (908 bytes, patch)
2018-12-02 23:59 UTC, Nathan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Ehmann 2018-12-02 22:02:10 UTC
After upgrading to torsocks-2.3.0, I get an error when using torify:

$ torify git clone https://github.com/freebsd/poudriere.git
1543787510 WARNING torsocks[25796]: [syscall] Unsupported syscall number 20. Denying the call (in tsocks_syscall() at syscall.c:568)
Cloning into 'poudriere'...
1543787510 WARNING torsocks[25796]: [syscall] Unsupported syscall number 2. Denying the call (in tsocks_syscall() at syscall.c:568)
error: cannot fork() for git-remote-https: Function not implemented

The same command works with torsocks 2.2.0.

syscall number 2 is fork. There have been some changes to syscall.c which may cause this issue.
Comment 1 Nathan 2018-12-02 23:59:05 UTC
Created attachment 199769 [details]
Attempt

Try this patch, if it works; we can update the port and fix this
Comment 2 Yuri Victorovich freebsd_committer 2018-12-03 00:24:50 UTC
(In reply to Nathan from comment #1)

Hi Nathan,

This patch doesn't apply, because this file is already patched for accept4 vs. accept by the port patch. It doesn't even contain the notion of 'accept4' any more.

Yuri