getDefaultNetavarkConfigDir return the netavark config dir. For rootful it will use "/etc/containers/networks" and for rootless "$graphroot/networks". We cannot use the graphroot for rootful since the network namespace is shared for all libpod instances.
(store storage.Store)
| 196 | // use the graphroot for rootful since the network namespace is shared for all |
| 197 | // libpod instances. |
| 198 | func getDefaultNetavarkConfigDir(store storage.Store) string { |
| 199 | if !unshare.IsRootless() { |
| 200 | return netavarkConfigDir |
| 201 | } |
| 202 | return filepath.Join(store.GraphRoot(), "networks") |
| 203 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…