Skip to content

Commit 14c05c1

Browse files
avagingvisor-bot
authored andcommitted
seccomp: set seccompNotifyIsSupported
Otherwise seccomp_user_notify is never used. PiperOrigin-RevId: 775381191
1 parent 2c0b7e7 commit 14c05c1

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

pkg/sentry/platform/systrap/subprocess.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ func initSeccompNotify() {
187187
switch errno {
188188
case unix.EFAULT:
189189
// seccomp unotify is supported.
190+
seccompNotifyIsSupported = true
190191
case unix.EINVAL:
191192
log.Warningf("Seccomp user-space notification mechanism isn't " +
192193
"supported by the kernel (available since Linux 5.0).")

pkg/sentry/platform/systrap/syscall_thread.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ func (t *syscallThread) syscall(sysno uintptr, args ...arch.SyscallArgument) (ui
224224
return 0, errDeadSubprocess
225225
}
226226
} else {
227-
228227
// Notify the syscall thread about a new syscall request.
229228
atomic.AddUint32(&sentryMsg.state, 1)
230229
futexWakeUint32(&sentryMsg.state)

0 commit comments

Comments
 (0)