diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/chaseccomp/buffer.chasc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/chaseccomp/buffer.chasc b/lib/chaseccomp/buffer.chasc index 14abddd4..c497145a 100644 --- a/lib/chaseccomp/buffer.chasc +++ b/lib/chaseccomp/buffer.chasc @@ -43,8 +43,12 @@ load args[1] # child_stack ifne 0 deny load args[2] # parent_tid ifne 0 deny -# 3 is child_tid. Let through whatever we got. -load args[4] # tls +# 3, 4 are child_tid and tls respectively. tls in particular is normally +# 0, but it is swapped with child_tid on some architectures. +# This still means that at least one of the two must be 0. +load args[3] +ifeq 0 allow +load args[4] ifeq 0 allow : not_clone |