summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2021-10-26 21:05:42 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2021-10-26 21:05:45 +0200
commit55397de93510a697f917edc31d74e55dc88ea520 (patch)
treee57230ebfbf932ac95820ab5f355a679a46968ec
parent8163d38c60db3e44815a506883304fdd5a8fce45 (diff)
downloadpodman-55397de93510a697f917edc31d74e55dc88ea520.tar.gz
podman-55397de93510a697f917edc31d74e55dc88ea520.tar.bz2
podman-55397de93510a697f917edc31d74e55dc88ea520.zip
cgroups: use SessionBusPrivateNoAutoStartup
do not start up a dbus daemon if it is not already running. [NO NEW TESTS NEEDED] the fix is in a dependency. Closes: https://github.com/containers/podman/issues/9727 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r--pkg/cgroups/cgroups.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/cgroups/cgroups.go b/pkg/cgroups/cgroups.go
index 1debc020c..d0c090012 100644
--- a/pkg/cgroups/cgroups.go
+++ b/pkg/cgroups/cgroups.go
@@ -464,7 +464,7 @@ func (c *CgroupControl) CreateSystemdUnit(path string) error {
// GetUserConnection returns a user connection to D-BUS
func GetUserConnection(uid int) (*systemdDbus.Conn, error) {
return systemdDbus.NewConnection(func() (*dbus.Conn, error) {
- return dbusAuthConnection(uid, dbus.SessionBusPrivate)
+ return dbusAuthConnection(uid, dbus.SessionBusPrivateNoAutoStartup)
})
}