summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2019-04-08 16:31:06 -0700
committerShentubot <shentubot@google.com>2019-04-08 16:32:11 -0700
commit9471c013483b0709479c51d470ac840621ae7d46 (patch)
tree651bfe7529c28e69320dbe1c9540250e103ba5db /pkg/sentry/fs
parent218a7b54494b263001ed791ca13857c12d37ded6 (diff)
Export kernel.SignalInfoPriv.
Also add kernel.SignalInfoNoInfo, and use it in RLIMIT_FSIZE checks. PiperOrigin-RevId: 242562428 Change-Id: I4887c0e1c8f5fddcabfe6d4281bf76d2f2eafe90
Diffstat (limited to 'pkg/sentry/fs')
-rw-r--r--pkg/sentry/fs/host/tty.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/pkg/sentry/fs/host/tty.go b/pkg/sentry/fs/host/tty.go
index 21db0086e..c5cb75df7 100644
--- a/pkg/sentry/fs/host/tty.go
+++ b/pkg/sentry/fs/host/tty.go
@@ -344,11 +344,8 @@ func (t *TTYFileOperations) checkChange(ctx context.Context, sig linux.Signal) e
// 040b6362d58f "tty: fix leakage of -ERESTARTSYS to userland" doesn't
// apply: the sentry will handle -ERESTARTSYS in
// kernel.runApp.execute() even if the kernel.Task isn't interrupted.
- si := arch.SignalInfo{
- Code: arch.SignalInfoKernel,
- Signo: int32(sig),
- }
+ //
// Linux ignores the result of kill_pgrp().
- _ = pg.SendSignal(&si)
+ _ = pg.SendSignal(kernel.SignalInfoPriv(sig))
return kernel.ERESTARTSYS
}