feat(go): advance validation sidecar toward production
This commit is contained in:
parent
6a06eba255
commit
f85c2e831a
92 changed files with 8881 additions and 91 deletions
19
go-agent/internal/ebpfsource/syscalls_amd64.go
Normal file
19
go-agent/internal/ebpfsource/syscalls_amd64.go
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
//go:build amd64
|
||||
|
||||
package ebpfsource
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
||||
func legacyPermissionSyscalls() map[uint64]uint32 {
|
||||
return map[uint64]uint32{
|
||||
unix.SYS_CHMOD: hostChmod,
|
||||
unix.SYS_CHOWN: hostChown,
|
||||
unix.SYS_LCHOWN: hostLchown,
|
||||
}
|
||||
}
|
||||
|
||||
func legacyNetworkSyscalls() map[uint64]uint32 {
|
||||
return map[uint64]uint32{unix.SYS_ACCEPT: hostAccept}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue