From fc8490a29aa87f81ad4a58c5b759317acb77876e Mon Sep 17 00:00:00 2001
From: Jamie Anderson <jamieand@amazon.com>
Date: Mon, 16 Aug 2021 17:21:38 +0000
Subject: [PATCH] Skip overlay/tar/untar test

Signed-off-by: Jamie Anderson <jamieand@amazon.com>
---
 pkg/archive/archive_linux_test.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pkg/archive/archive_linux_test.go b/pkg/archive/archive_linux_test.go
index 800fda6..08a196b 100644
--- a/pkg/archive/archive_linux_test.go
+++ b/pkg/archive/archive_linux_test.go
@@ -9,6 +9,7 @@ import (
 
 	"github.com/containerd/containerd/sys"
 	"github.com/docker/docker/pkg/system"
+	"github.com/docker/docker/testutil"
 	"golang.org/x/sys/unix"
 	"gotest.tools/v3/assert"
 	"gotest.tools/v3/skip"
@@ -87,6 +88,7 @@ func checkFileMode(t *testing.T, path string, perm os.FileMode) {
 }
 
 func TestOverlayTarUntar(t *testing.T) {
+	testutil.RequiresRoot(t)
 	oldmask, err := system.Umask(0)
 	assert.NilError(t, err)
 	defer system.Umask(oldmask)
@@ -126,6 +128,7 @@ func TestOverlayTarUntar(t *testing.T) {
 }
 
 func TestOverlayTarAUFSUntar(t *testing.T) {
+	testutil.RequiresRoot(t)
 	oldmask, err := system.Umask(0)
 	assert.NilError(t, err)
 	defer system.Umask(oldmask)
-- 
2.31.0.rc2

