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
  • #20844

Closed
Open
Created Nov 30, 2016 by Roger Dingledine@arma

Inform me about sandbox violations

The bubblewrap seccomp sandbox prevents my sandboxed tor browser from doing certain system calls. That's great! But, what do I see when it attempts a forbidden system call?

Yawning tells me the answer right now is that it silently doesn't do the forbidden action. That's not terrible, but if I want to debug our sandbox rules, or learn whether I'm being attacked by the website payload, it's not ideal.

Apparently another option is that the kernel could send the process a SIGSYS signal. So in that case my browser would die with a sigsys signal, and I could conclude that apparently a sandbox violation occurred.

But Yawning says that the sandbox rules aren't perfect, and in particular there are some edge cases involving "weird issues with x86 32 bit systems forgetting whitelisted syscalls". So killing by default will end up with some sad users.

Apparently a third option would be to teach Firefox to hook the sigsys signal, and then it could log something about what it was doing at the time it got the signal. That involves some programming -- and I wonder if the timing is fine-grained enough that Firefox at the time of the sigsys signal can identify exactly which syscall it is doing?

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