diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-11-22 23:51:15 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-22 23:51:15 +0000 |
commit | a9af31835128704f3ed7f411af069784db81e3d6 (patch) | |
tree | 5bd63f0cb5c083a954463060fe3592733c2fe731 /runsc | |
parent | 3dd882b454af9b3464525f2ad61d60b181e36b77 (diff) | |
parent | 5eb522193cf206a36c1663d909b9e53ae93b2b6a (diff) |
Merge release-20191114.0-24-g5eb5221 (automated)
Diffstat (limited to 'runsc')
-rw-r--r-- | runsc/main.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/runsc/main.go b/runsc/main.go index 711f60d4f..4682b308c 100644 --- a/runsc/main.go +++ b/runsc/main.go @@ -26,6 +26,7 @@ import ( "path/filepath" "strings" "syscall" + "time" "flag" @@ -237,6 +238,18 @@ func main() { log.SetLevel(log.Debug) } + // Logging will include the local date and time via the time package. + // + // On first use, time.Local initializes the local time zone, which + // involves opening tzdata files on the host. Since this requires + // opening host files, it must be done before syscall filter + // installation. + // + // Generally there will be a log message before filter installation + // that will force initialization, but force initialization here in + // case that does not occur. + _ = time.Local.String() + subcommand := flag.CommandLine.Arg(0) var e log.Emitter |