Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #30658

Closed (moved)
(moved)
Open
Created May 28, 2019 by Trac@tracbot

Unsupported syscalls (292/dup3, 293/pipe2, 332/statx)

I've been playing around with an torified environment via . torsocks on. Running a vanilla vim, torsocks complains about the mentioned syscalls:

$ vim -u NONE
1559028872 WARNING torsocks[6802]: [syscall] Unsupported syscall number 293. Denying the call (in tsocks_syscall() at syscall.c:568)
1559028872 WARNING torsocks[6802]: [syscall] Unsupported syscall number 332. Denying the call (in tsocks_syscall() at syscall.c:568)
1559028873 WARNING torsocks[6802]: [syscall] Unsupported syscall number 292. Denying the call (in tsocks_syscall() at syscall.c:568)

Peeking in the linux kernel source tree, these naively look safe to me:

$ egrep '^(293|332|292)' arch/x86/entry/syscalls/syscall_64.tbl
292     common  dup3                    __x64_sys_dup3
293     common  pipe2                   __x64_sys_pipe2
332     common  statx                   __x64_sys_statx

Does adding these to the whitelist seem reasonable?

=== Version Info

$ torsocks --version
Torsocks 2.3.0

$ lsb_release --all
LSB Version:	1.0
Distributor ID:	VoidLinux
Description:	Void Linux
Release:	rolling
Codename:	void

$ uname -a
Linux lang 5.0.17_1 #1 SMP PREEMPT Fri May 17 08:23:10 UTC 2019 x86_64 GNU/Linux

=== Notes

This is my first ticket here, so if I've commited some faux pas please forgive me. Cheers!

Trac:
Username: eirizuhaex

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking