Skip to content

Commit b8c92ca

Browse files
committed
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: containers/podman#16718 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> (cherry picked from commit 12a939e)
1 parent d4e05d3 commit b8c92ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cgroups/cgroups.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ func (c *CgroupControl) CreateSystemdUnit(path string) error {
432432
// GetUserConnection returns an user connection to D-BUS
433433
func GetUserConnection(uid int) (*systemdDbus.Conn, error) {
434434
return systemdDbus.NewConnection(func() (*dbus.Conn, error) {
435-
return dbusAuthConnection(uid, dbus.SessionBusPrivate)
435+
return dbusAuthConnection(uid, dbus.SessionBusPrivateNoAutoStartup)
436436
})
437437
}
438438

0 commit comments

Comments
 (0)