INNER CODE UNIT · Go
absPath
cilium/tetragon · cmd/tetragon/main.go:114
func absPath(p string) string {
if len(p) == 0 {
return p
}
ret, err := filepath.Abs(p)
if err != nil {
log.Warn("failed to get absolute path", "path", p, logfields.Error, err)
return p
}
return ret
}
// saveInitInfo writes daemon info read by tetra and bugtool. ServerAddr
// advertises the unix listener (when one runs) so in-pod tooling
// defaults to the trusted IPC channel rather than the TCP listener,
// which may require TLS / mTLS.
func saveInitInfo() error {
addr := ""