Skip to content

Commit

Permalink
Add missing PTRACE_GET_SYSCALL_INFO constant
Browse files Browse the repository at this point in the history
Signed-off-by: grantseltzer <grantseltzer@gmail.com>
  • Loading branch information
grantseltzer authored and Rafael David Tinoco committed Jan 11, 2022
1 parent 088c639 commit 92ab22d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helpers/argumentParsers.go
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,7 @@ var (
PTRACE_SETSIGMASK PtraceRequestArgument = 0x420b
PTRACE_SECCOMP_GET_FILTER PtraceRequestArgument = 0x420c
PTRACE_SECCOMP_GET_METADATA PtraceRequestArgument = 0x420d
PTRACE_GET_SYSCALL_INFO PtraceRequestArgument = 0x420e
)

func (p PtraceRequestArgument) Value() uint64 { return uint64(p) }
Expand Down Expand Up @@ -917,6 +918,7 @@ func (p PtraceRequestArgument) String() string {
PTRACE_SETSIGMASK: "PTRACE_SETSIGMASK",
PTRACE_SECCOMP_GET_FILTER: "PTRACE_SECCOMP_GET_FILTER",
PTRACE_SECCOMP_GET_METADATA: "PTRACE_SECCOMP_GET_METADATA",
PTRACE_GET_SYSCALL_INFO: "PTRACE_GET_SYSCALL_INFO",
}

var res string
Expand Down Expand Up @@ -964,6 +966,7 @@ func ParsePtraceRequestArgument(rawValue uint64) (PtraceRequestArgument, error)
PTRACE_SETSIGMASK.Value(): PTRACE_SETSIGMASK,
PTRACE_SECCOMP_GET_FILTER.Value(): PTRACE_SECCOMP_GET_FILTER,
PTRACE_SECCOMP_GET_METADATA.Value(): PTRACE_SECCOMP_GET_METADATA,
PTRACE_GET_SYSCALL_INFO.Value(): PTRACE_GET_SYSCALL_INFO,
}

if reqName, ok := ptraceRequest[rawValue]; ok {
Expand Down

0 comments on commit 92ab22d

Please sign in to comment.