Affected by GO-2024-3010
and 2 other vulnerabilities
GO-2024-3010: CVE-2024-6984 in github.com/juju/juju
GO-2024-3040: Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm in github.com/juju/juju
GO-2024-3175: Vulnerable juju introspection abstract UNIX domain socket in github.com/juju/juju
func NewLock(previous Version, current version.Number) gate.Lock
NewLock creates a gate.Lock to be used to synchronise workers which
need to start after upgrades have completed. The returned Lock should
be passed to NewWorker. If the agent has already upgraded to the
current version, then the lock will be returned in the released state.