gvisor/pkg/seccomp
Adin Scannell 463e73d46d Add seccomp filter configuration to ptrace stubs.
This is a defense-in-depth measure. If the sentry is compromised, this prevents
system call injection to the stubs. There is some complexity with respect to
ptrace and seccomp interactions, so this protection is not really available
for kernel versions < 4.8; this is detected dynamically.

Note that this also solves the vsyscall emulation issue by adding in
appropriate trapping for those system calls. It does mean that a compromised
sentry could theoretically inject these into the stub (ignoring the trap and
resume, thereby allowing execution), but they are harmless.

PiperOrigin-RevId: 216647581
Change-Id: Id06c232cbac1f9489b1803ec97f83097fcba8eb8
2018-10-10 22:40:28 -07:00
..
BUILD Add seccomp filter configuration to ptrace stubs. 2018-10-10 22:40:28 -07:00
seccomp.go Add seccomp filter configuration to ptrace stubs. 2018-10-10 22:40:28 -07:00
seccomp_rules.go Add seccomp filter configuration to ptrace stubs. 2018-10-10 22:40:28 -07:00
seccomp_test.go Add seccomp filter configuration to ptrace stubs. 2018-10-10 22:40:28 -07:00
seccomp_test_victim.go Add SyscallRules that supports argument filtering 2018-06-01 13:40:52 -07:00
seccomp_unsafe.go Add seccomp filter configuration to ptrace stubs. 2018-10-10 22:40:28 -07:00