(s string)
| 25 | ) |
| 26 | |
| 27 | func 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…