github.com/DataDog/datadog-agent/pkg/security/secl@v0.55.0-devel.0.20240517055856-10c4965fea94/model/consts_linux_amd64.go (about)

     1  // Unless explicitly stated otherwise all files in this repository are licensed
     2  // under the Apache License Version 2.0.
     3  // This product includes software developed at Datadog (https://www.datadoghq.com/).
     4  // Copyright 2016-present Datadog, Inc.
     5  
     6  //go:build linux
     7  
     8  // Package model holds model related files
     9  package model
    10  
    11  import (
    12  	"golang.org/x/sys/unix"
    13  )
    14  
    15  var (
    16  	// ptraceArchConstants are the supported ptrace commands for the ptrace syscall on amd64
    17  	// generate_constants:Ptrace constants,Ptrace constants are the supported ptrace commands for the ptrace syscall.
    18  	ptraceArchConstants = map[string]uint32{
    19  		"PTRACE_GETFPREGS":         unix.PTRACE_GETFPREGS,
    20  		"PTRACE_SETFPREGS":         unix.PTRACE_SETFPREGS,
    21  		"PTRACE_GETFPXREGS":        unix.PTRACE_GETFPXREGS,
    22  		"PTRACE_SETFPXREGS":        unix.PTRACE_SETFPXREGS,
    23  		"PTRACE_OLDSETOPTIONS":     unix.PTRACE_OLDSETOPTIONS,
    24  		"PTRACE_GET_THREAD_AREA":   unix.PTRACE_GET_THREAD_AREA,
    25  		"PTRACE_SET_THREAD_AREA":   unix.PTRACE_SET_THREAD_AREA,
    26  		"PTRACE_ARCH_PRCTL":        unix.PTRACE_ARCH_PRCTL,
    27  		"PTRACE_SYSEMU":            unix.PTRACE_SYSEMU,
    28  		"PTRACE_SYSEMU_SINGLESTEP": unix.PTRACE_SYSEMU_SINGLESTEP,
    29  		"PTRACE_SINGLEBLOCK":       unix.PTRACE_SINGLEBLOCK,
    30  	}
    31  
    32  	// mmapFlagConstants are the supported flags for the mmap syscall on amd64
    33  	// generate_constants:MMap flags,MMap flags are the supported flags for the mmap syscall.
    34  	mmapFlagArchConstants = map[string]uint64{
    35  		"MAP_32BIT": unix.MAP_32BIT, /* only give out 32bit addresses */
    36  	}
    37  )