()
| 180 | } |
| 181 | |
| 182 | func getDefultCNIConfigDir() (string, error) { |
| 183 | if !unshare.IsRootless() { |
| 184 | return cniConfigDir, nil |
| 185 | } |
| 186 | |
| 187 | configHome, err := homedir.GetConfigHome() |
| 188 | if err != nil { |
| 189 | return "", err |
| 190 | } |
| 191 | return filepath.Join(configHome, cniConfigDirRootless), nil |
| 192 | } |
| 193 | |
| 194 | // getDefaultNetavarkConfigDir return the netavark config dir. For rootful it will |
| 195 | // use "/etc/containers/networks" and for rootless "$graphroot/networks". We cannot |
no outgoing calls
no test coverage detected
searching dependent graphs…