Skip to content

Commit 3b2b16c

Browse files
committed
cptbox: fix BAD_SECCOMP handling for Debian patched kernels
1 parent 11bf2cd commit 3b2b16c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dmoj/cptbox/tracer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
_SYSCALL_INDICIES[PTBOX_ABI_ARM64] = 5
3131

3232
FREEBSD = sys.platform.startswith('freebsd')
33-
BAD_SECCOMP = sys.platform == 'linux' and tuple(map(int, os.uname().release.partition('-')[0].split('.'))) < (4, 8)
33+
BAD_SECCOMP = sys.platform == 'linux' and \
34+
tuple(map(int, os.uname().release.partition('+')[0].partition('-')[0].split('.'))) < (4, 8)
3435

3536
_address_bits = {
3637
PTBOX_ABI_X86: 32,

0 commit comments

Comments
 (0)