Skip to content

Commit

Permalink
cgroups: use SessionBusPrivateNoAutoStartup
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
giuseppe committed Dec 16, 2022
1 parent d4e05d3 commit b8c92ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cgroups/cgroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ func (c *CgroupControl) CreateSystemdUnit(path string) error {
// GetUserConnection returns an 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)
})
}

Expand Down

0 comments on commit b8c92ca

Please sign in to comment.