mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-28 19:44:21 +01:00
Add new vendor library "github.com/containerd/cgroups" commit: 5017d4e9a9cf2d4381db99eacd9baf84b95bfb14 This library is for host cgroup support for next commit. Signed-off-by: Wei Zhang <zhangwei555@huawei.com>
16 lines
171 B
Go
16 lines
171 B
Go
// +build !static_build
|
|
|
|
package dbus
|
|
|
|
import (
|
|
"os/user"
|
|
)
|
|
|
|
func lookupHomeDir() string {
|
|
u, err := user.Current()
|
|
if err != nil {
|
|
return "/"
|
|
}
|
|
return u.HomeDir
|
|
}
|