aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/containers/buildah/copier/syscall_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/containers/buildah/copier/syscall_unix.go')
-rw-r--r--vendor/github.com/containers/buildah/copier/syscall_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/containers/buildah/copier/syscall_unix.go b/vendor/github.com/containers/buildah/copier/syscall_unix.go
index 55f2f368a..2c2806d0a 100644
--- a/vendor/github.com/containers/buildah/copier/syscall_unix.go
+++ b/vendor/github.com/containers/buildah/copier/syscall_unix.go
@@ -10,7 +10,7 @@ import (
"golang.org/x/sys/unix"
)
-var canChroot = true
+var canChroot = os.Getuid() == 0
func chroot(root string) (bool, error) {
if canChroot {