File 0003-c-common-default-to-slirp4netns-as-the-rootless-netw.patch of Package buildah.37505
From 58d787dfc6638792d0d65d1ed9d05100d9f1f51d Mon Sep 17 00:00:00 2001
From: Danish Prakash <contact@danishpraka.sh>
Date: Wed, 30 Oct 2024 11:36:03 +0900
Subject: [PATCH 3/5] c/common: default to slirp4netns as the rootless
networking backend
rootless network backend was switched to pasta, relatively quietly[1],
within c/common and was vendored in buildah. We don't intend to ship
pasta in SLES and so this caused problems with certain buildah commands.
This patch switches it back to slirp4netns.
[1] - https://github.com/containers/common/pull/1846/commits/fdf91cda79d2ed9f2cb105b772ec719d87b0de0f
Bugs: bsc#1232522
Signed-off-by: Danish Prakash <contact@danishpraka.sh>
---
vendor/github.com/containers/common/pkg/config/default.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vendor/github.com/containers/common/pkg/config/default.go b/vendor/github.com/containers/common/pkg/config/default.go
index b08f16592f45..f9ee27507341 100644
--- a/vendor/github.com/containers/common/pkg/config/default.go
+++ b/vendor/github.com/containers/common/pkg/config/default.go
@@ -257,7 +257,7 @@ func defaultConfig() (*Config, error) {
DefaultNetwork: "podman",
DefaultSubnet: DefaultSubnet,
DefaultSubnetPools: DefaultSubnetPools,
- DefaultRootlessNetworkCmd: "pasta",
+ DefaultRootlessNetworkCmd: "slirp4netns",
DNSBindPort: 0,
CNIPluginDirs: attributedstring.NewSlice(DefaultCNIPluginDirs),
NetavarkPluginDirs: attributedstring.NewSlice(DefaultNetavarkPluginDirs),
--
2.46.0