summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/syscalls/linux/sigset.go
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2020-05-07 11:40:01 -0700
committergVisor bot <gvisor-bot@google.com>2020-05-07 11:41:50 -0700
commit26c60d7d5d31fdf3ad380a0f09b4f33afae3d9d3 (patch)
tree4a78273cba7ad8c7ed29411197799bebc69a7876 /pkg/sentry/syscalls/linux/sigset.go
parent08f4846ebe79236ded6f4bc816b0a776afe14463 (diff)
Port signalfd to vfs2.
PiperOrigin-RevId: 310404113
Diffstat (limited to 'pkg/sentry/syscalls/linux/sigset.go')
-rw-r--r--pkg/sentry/syscalls/linux/sigset.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkg/sentry/syscalls/linux/sigset.go b/pkg/sentry/syscalls/linux/sigset.go
index 2ddb2b146..434559b80 100644
--- a/pkg/sentry/syscalls/linux/sigset.go
+++ b/pkg/sentry/syscalls/linux/sigset.go
@@ -21,9 +21,13 @@ import (
"gvisor.dev/gvisor/pkg/usermem"
)
-// copyInSigSet copies in a sigset_t, checks its size, and ensures that KILL and
+// CopyInSigSet copies in a sigset_t, checks its size, and ensures that KILL and
// STOP are clear.
-func copyInSigSet(t *kernel.Task, sigSetAddr usermem.Addr, size uint) (linux.SignalSet, error) {
+//
+// TODO(gvisor.dev/issue/1624): This is only exported because
+// syscalls/vfs2/signal.go depends on it. Once vfs1 is deleted and the vfs2
+// syscalls are moved into this package, then they can be unexported.
+func CopyInSigSet(t *kernel.Task, sigSetAddr usermem.Addr, size uint) (linux.SignalSet, error) {
if size != linux.SignalSetSize {
return 0, syserror.EINVAL
}