MCPcopy Create free account
hub / github.com/containerd/nerdctl / IsSocketAccessible

Function IsSocketAccessible

pkg/systemutil/socket_unix.go:27–34  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

25)
26
27func IsSocketAccessible(s string) error {
28 abs, err := filepath.Abs(s)
29 if err != nil {
30 return err
31 }
32 // set AT_EACCESS to allow running nerdctl as a setuid binary
33 return unix.Faccessat(-1, abs, unix.R_OK|unix.W_OK, unix.AT_EACCESS)
34}

Callers 2

generateIPAMMethod · 0.92
NewClientFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…