summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--runsc/boot/config.go8
-rw-r--r--runsc/boot/loader.go6
-rw-r--r--runsc/main.go4
3 files changed, 2 insertions, 16 deletions
diff --git a/runsc/boot/config.go b/runsc/boot/config.go
index e00d44df9..400203c99 100644
--- a/runsc/boot/config.go
+++ b/runsc/boot/config.go
@@ -200,15 +200,8 @@ type Config struct {
// PanicSignal registers signal handling that panics. Usually set to
// SIGUSR2(12) to troubleshoot hangs. -1 disables it.
- //
- // PanicSignal takes precedence over TraceSignal.
PanicSignal int
- // TraceSignal registers signal handling that logs a traceback of all
- // goroutines. Usually set to SIGUSR2(12) to troubleshoot hangs. -1
- // disables it.
- TraceSignal int
-
// TestOnlyAllowRunAsCurrentUserWithoutChroot should only be used in
// tests. It allows runsc to start the sandbox process as the current
// user, and without chrooting the sandbox process. This can be
@@ -235,7 +228,6 @@ func (c *Config) ToFlags() []string {
"--strace-log-size=" + strconv.Itoa(int(c.StraceLogSize)),
"--watchdog-action=" + c.WatchdogAction.String(),
"--panic-signal=" + strconv.Itoa(c.PanicSignal),
- "--trace-signal=" + strconv.Itoa(c.TraceSignal),
}
if c.TestOnlyAllowRunAsCurrentUserWithoutChroot {
// Only include if set since it is never to be used by users.
diff --git a/runsc/boot/loader.go b/runsc/boot/loader.go
index 3c6892446..71a2ab962 100644
--- a/runsc/boot/loader.go
+++ b/runsc/boot/loader.go
@@ -309,14 +309,10 @@ func New(args Args) (*Loader, error) {
// Handle signals by forwarding them to the root container process
// (except for panic signal, which should cause a panic).
l.startSignalForwarding = sighandling.PrepareHandler(func(sig linux.Signal) {
- // Tracing signals should cause their respective actions.
+ // Panic signal should cause a panic.
if args.Conf.PanicSignal != -1 && sig == linux.Signal(args.Conf.PanicSignal) {
panic("Signal-induced panic")
}
- if args.Conf.TraceSignal != -1 && sig == linux.Signal(args.Conf.TraceSignal) {
- log.TracebackAll("Signal-induced traceback")
- return
- }
// Otherwise forward to root container.
deliveryMode := DeliverToProcess
diff --git a/runsc/main.go b/runsc/main.go
index a6ea0e9fa..e036abc44 100644
--- a/runsc/main.go
+++ b/runsc/main.go
@@ -62,8 +62,7 @@ var (
fileAccess = flag.String("file-access", "exclusive", "specifies which filesystem to use for the root mount: exclusive (default), shared. Volume mounts are always shared.")
overlay = flag.Bool("overlay", false, "wrap filesystem mounts with writable overlay. All modifications are stored in memory inside the sandbox.")
watchdogAction = flag.String("watchdog-action", "log", "sets what action the watchdog takes when triggered: log (default), panic.")
- panicSignal = flag.Int("panic-signal", -1, "register signal handling that panics. Usually set to SIGUSR2(12) to troubleshoot hangs. -1 disables it. This takes precendence over -trace-signal.")
- traceSignal = flag.Int("trace-signal", -1, "register signal handling that logs a traceback of all goroutines. Usually set to SIGUSR2(12) to troubleshoot hangs. -1 disables it.")
+ panicSignal = flag.Int("panic-signal", -1, "register signal handling that panics. Usually set to SIGUSR2(12) to troubleshoot hangs. -1 disables it.")
testOnlyAllowRunAsCurrentUserWithoutChroot = flag.Bool("TESTONLY-unsafe-nonroot", false, "TEST ONLY; do not ever use! This skips many security measures that isolate the host from the sandbox.")
)
@@ -147,7 +146,6 @@ func main() {
StraceLogSize: *straceLogSize,
WatchdogAction: wa,
PanicSignal: *panicSignal,
- TraceSignal: *traceSignal,
TestOnlyAllowRunAsCurrentUserWithoutChroot: *testOnlyAllowRunAsCurrentUserWithoutChroot,
}
if len(*straceSyscalls) != 0 {