diff options
author | Haibo Xu <haibo.xu@arm.com> | 2019-11-11 09:15:45 +0000 |
---|---|---|
committer | Haibo Xu <haibo.xu@arm.com> | 2019-11-13 06:46:02 +0000 |
commit | c5d9b5b8816e99507661e1d39ec51033fb69e212 (patch) | |
tree | 747dfc72c53c5edcf5d24a57647c49e3deaf1f9d /pkg/sentry/fs/host/util.go | |
parent | 2c6c9af904c99371fe4381517375cd114917db59 (diff) |
Enable sentry/fs/host support on arm64.
newfstatat() syscall is not supported on arm64, so we resort
to use the fstatat() syscall.
Signed-off-by: Haibo Xu <haibo.xu@arm.com>
Change-Id: Iea95550ea53bcf85c01f7b3b95da70ad0952177d
Diffstat (limited to 'pkg/sentry/fs/host/util.go')
-rw-r--r-- | pkg/sentry/fs/host/util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fs/host/util.go b/pkg/sentry/fs/host/util.go index bad61a9a1..e37e687c6 100644 --- a/pkg/sentry/fs/host/util.go +++ b/pkg/sentry/fs/host/util.go @@ -155,7 +155,7 @@ func unstableAttr(mo *superOperations, s *syscall.Stat_t) fs.UnstableAttr { AccessTime: ktime.FromUnix(s.Atim.Sec, s.Atim.Nsec), ModificationTime: ktime.FromUnix(s.Mtim.Sec, s.Mtim.Nsec), StatusChangeTime: ktime.FromUnix(s.Ctim.Sec, s.Ctim.Nsec), - Links: s.Nlink, + Links: uint64(s.Nlink), } } |