diff options
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/linux/test/landlock_ptrace | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/linux/test/landlock_ptrace b/sys/linux/test/landlock_ptrace index e401b6344..29048aaa6 100644 --- a/sys/linux/test/landlock_ptrace +++ b/sys/linux/test/landlock_ptrace @@ -1,5 +1,8 @@ # Creates independent Landlock hierarchies and try different tracer/tracee # schemas (without scheduling control). +# +# In this test, some ptrace(2) calls return different code according to the +# calling thread. capset(&AUTO={0x20080522, 0x0}, &AUTO={0x0, 0x0, 0x0, 0x0, 0x0, 0x0}) prctl$PR_SET_NO_NEW_PRIVS(0x26, 0x1) @@ -16,7 +19,7 @@ landlock_restrict_self(r1, 0x0) r2 = syz_clone(0x11, 0x0, 0x0, 0x0, 0x0, 0x0) -ptrace(0x10, r0) +ptrace(0x10, r0) # EPERM ptrace(0x11, r0) ptrace(0x10, r2) @@ -25,10 +28,10 @@ ptrace(0x11, r2) r3 = landlock_create_ruleset(&AUTO={0x100, 0x0, 0x0}, AUTO, 0x0) landlock_restrict_self(r3, 0x0) -ptrace(0x10, r0) +ptrace(0x10, r0) # EPERM ptrace(0x11, r0) -ptrace(0x10, r2) +ptrace(0x10, r2) # EPERM ptrace(0x11, r2) # For now, PTRACE_TRACEME is transformed to -1, which returns an error: |
