Merge pull request #1254 from giuseppe/cgroup-no-autostartup

cgroups: use SessionBusPrivateNoAutoStartup
This commit is contained in:
OpenShift Merge Robot 2022-12-05 07:05:23 -05:00 committed by GitHub
commit 63003fd896
1 changed files with 1 additions and 1 deletions

View File

@ -431,7 +431,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)
})
}