Open
Description
Output of the info page (if this is a bug)
--- Setting rtloader paths to lib:/root/datadog-agent/dev/lib | header:/root/datadog-agent/dev/include | common headers:
# github.com/DataDog/datadog-agent/pkg/secrets
pkg/secrets/check_rights_nix.go:68:32: undefined: syscall.S_IWGRP
pkg/secrets/check_rights_nix.go:86:17: undefined: syscall.S_IXGRP
Describe what happened:
cannot build an agent as it checks for the value that is defined inside a UNIX system as default:
Freebsd/stat.h (https://github.com/freebsd/freebsd-src/blob/master/sys/sys/stat.h#L261)
Looks like a problem is in GO syscall https://github.com/DataDog/datadog-agent/blob/main/pkg/secrets/check_rights_nix.go#L68
Describe what you expected:
agent is built
Steps to reproduce the issue:
follow build process from readme: invoke agent.build --build-exclude=systemd
Additional environment details (Operating System, Cloud provider, etc):
FreeBSD13.0, go 1.17