gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sentry/strace/ptrace.go (about)

     1  // Copyright 2018 The gVisor Authors.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package strace
    16  
    17  import (
    18  	"gvisor.dev/gvisor/pkg/abi"
    19  	"gvisor.dev/gvisor/pkg/abi/linux"
    20  )
    21  
    22  // PtraceRequestSet are the possible ptrace(2) requests.
    23  var PtraceRequestSet = abi.ValueSet{
    24  	linux.PTRACE_TRACEME:           "PTRACE_TRACEME",
    25  	linux.PTRACE_PEEKTEXT:          "PTRACE_PEEKTEXT",
    26  	linux.PTRACE_PEEKDATA:          "PTRACE_PEEKDATA",
    27  	linux.PTRACE_PEEKUSR:           "PTRACE_PEEKUSR",
    28  	linux.PTRACE_POKETEXT:          "PTRACE_POKETEXT",
    29  	linux.PTRACE_POKEDATA:          "PTRACE_POKEDATA",
    30  	linux.PTRACE_POKEUSR:           "PTRACE_POKEUSR",
    31  	linux.PTRACE_CONT:              "PTRACE_CONT",
    32  	linux.PTRACE_KILL:              "PTRACE_KILL",
    33  	linux.PTRACE_SINGLESTEP:        "PTRACE_SINGLESTEP",
    34  	linux.PTRACE_ATTACH:            "PTRACE_ATTACH",
    35  	linux.PTRACE_DETACH:            "PTRACE_DETACH",
    36  	linux.PTRACE_SYSCALL:           "PTRACE_SYSCALL",
    37  	linux.PTRACE_SETOPTIONS:        "PTRACE_SETOPTIONS",
    38  	linux.PTRACE_GETEVENTMSG:       "PTRACE_GETEVENTMSG",
    39  	linux.PTRACE_GETSIGINFO:        "PTRACE_GETSIGINFO",
    40  	linux.PTRACE_SETSIGINFO:        "PTRACE_SETSIGINFO",
    41  	linux.PTRACE_GETREGSET:         "PTRACE_GETREGSET",
    42  	linux.PTRACE_SETREGSET:         "PTRACE_SETREGSET",
    43  	linux.PTRACE_SEIZE:             "PTRACE_SEIZE",
    44  	linux.PTRACE_INTERRUPT:         "PTRACE_INTERRUPT",
    45  	linux.PTRACE_LISTEN:            "PTRACE_LISTEN",
    46  	linux.PTRACE_PEEKSIGINFO:       "PTRACE_PEEKSIGINFO",
    47  	linux.PTRACE_GETSIGMASK:        "PTRACE_GETSIGMASK",
    48  	linux.PTRACE_SETSIGMASK:        "PTRACE_SETSIGMASK",
    49  	linux.PTRACE_GETREGS:           "PTRACE_GETREGS",
    50  	linux.PTRACE_SETREGS:           "PTRACE_SETREGS",
    51  	linux.PTRACE_GETFPREGS:         "PTRACE_GETFPREGS",
    52  	linux.PTRACE_SETFPREGS:         "PTRACE_SETFPREGS",
    53  	linux.PTRACE_GETFPXREGS:        "PTRACE_GETFPXREGS",
    54  	linux.PTRACE_SETFPXREGS:        "PTRACE_SETFPXREGS",
    55  	linux.PTRACE_OLDSETOPTIONS:     "PTRACE_OLDSETOPTIONS",
    56  	linux.PTRACE_GET_THREAD_AREA:   "PTRACE_GET_THREAD_AREA",
    57  	linux.PTRACE_SET_THREAD_AREA:   "PTRACE_SET_THREAD_AREA",
    58  	linux.PTRACE_ARCH_PRCTL:        "PTRACE_ARCH_PRCTL",
    59  	linux.PTRACE_SYSEMU:            "PTRACE_SYSEMU",
    60  	linux.PTRACE_SYSEMU_SINGLESTEP: "PTRACE_SYSEMU_SINGLESTEP",
    61  	linux.PTRACE_SINGLEBLOCK:       "PTRACE_SINGLEBLOCK",
    62  }