diff options
author | Fabricio Voznika <fvoznika@google.com> | 2018-06-26 19:04:51 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-06-26 19:05:50 -0700 |
commit | c186e408cc61cbefd6d72c2ff3e9d629572570db (patch) | |
tree | 1f9017672c35fa292a800fa128f8d89834ef7037 /pkg/sentry/fs/overlay.go | |
parent | dc33d71f8cf11bede2b224f4be730916f7faac81 (diff) |
Add KVM, overlay and host network to image tests
PiperOrigin-RevId: 202236006
Change-Id: I4ea964a70fc49e8b51c9da27d77301c4eadaae71
Diffstat (limited to 'pkg/sentry/fs/overlay.go')
-rw-r--r-- | pkg/sentry/fs/overlay.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fs/overlay.go b/pkg/sentry/fs/overlay.go index 90d21642e..a63f00e0e 100644 --- a/pkg/sentry/fs/overlay.go +++ b/pkg/sentry/fs/overlay.go @@ -113,7 +113,7 @@ func NewOverlayRoot(ctx context.Context, upper *Inode, lower *Inode, flags Mount // - lower must not require that file objects be revalidated. // - lower must not have dynamic file/directory content. func NewOverlayRootFile(ctx context.Context, upperMS *MountSource, lower *Inode, flags MountSourceFlags) (*Inode, error) { - if IsRegular(lower.StableAttr) { + if !IsRegular(lower.StableAttr) { return nil, fmt.Errorf("lower Inode is not a regular file") } msrc := newOverlayMountSource(upperMS, lower.MountSource, flags) |