7 Commits
Author SHA1 Message Date
Andrei VaginandgVisor bot d844c7bbb7 Allow Sentry to kill itself even when it is the init process
PiperOrigin-RevId: 733399678
2025-03-04 11:25:32 -08:00
Adin ScannellandgVisor bot 1ceb814544 Add default_applicable_licenses rules to packages.
PiperOrigin-RevId: 513581243
2023-03-02 10:50:04 -08:00
B. Blechschmidt d5e1ed3cd9 Add terminal support to do, exec and run commands
When a terminal is used, signals are now forwared to the foreground
process inside the sandbox. As a result, control commands like Ctrl+C
can be handled by the terminal in the guest.
2023-02-27 01:21:16 +01:00
Jamie LiuandgVisor bot f9afde9b88 Exempt SIGPIPE from sentry signal forwarding.
The sentry may get SIGPIPE from writing to readerless pipes or shutdown
sockets; in these cases, it's incorrect to forward the SIGPIPE to app PID 1.

(It would be correct to send SIGPIPE to the app thread performing the write
instead, but we can't do so with signal forwarding since (1) we can't identify
the correct app thread to signal and (2) Go signal handling with os/signal is
async - the sentry thread that received SIGPIPE continued execution after doing
so, so the app thread may already be running. Having the sentry send SIGPIPE
independently of the host is gvisor.dev/issue/161.)

Updates #7293

PiperOrigin-RevId: 445469810
2022-04-29 11:46:33 -07:00
Kevin KrakauerandgVisor bot 82793c5e90 netstack: fix Mac build error
- Stub out sighandling functions with panics on Darwin
- Put Linux-specific errors into their own syserr file

Not sure how best to get automated tests running, so I'll leave that for a later
change.

Fixes #6839.
Related to #1270.

PiperOrigin-RevId: 409516969
2021-11-12 15:24:47 -08:00
Etienne PerotandgVisor bot 65698b627e Move safecopy.ReplaceSignalHandler into sighandling package.
PiperOrigin-RevId: 399560357
2021-09-28 16:56:39 -07:00
Etienne PerotandgVisor bot e251f6cc5c Move sighandling package out of sentry.
PiperOrigin-RevId: 399295737
2021-09-27 15:31:05 -07:00