Skip to content

Commit

Permalink
Add warning that using --no-pivot is not secure
Browse files Browse the repository at this point in the history
It is only intended for compatibility with the old
rootfs ISO, and not needed with the new tmpfs ISO.
  • Loading branch information
afbjorklund committed Aug 24, 2019
1 parent ae8894c commit eec1a06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/provision/buildroot.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ Type=notify
`
if noPivot {
log.Warn("Using fundamentally insecure --no-pivot option")
engineConfigTmpl += `
# DOCKER_RAMDISK disables pivot_root in Docker, using MS_MOVE instead.
Environment=DOCKER_RAMDISK=yes
Expand Down

0 comments on commit eec1a06

Please sign in to comment.