All of lore.kernel.org
 help / color / mirror / Atom feed
* running binaries under doubly stacked overlayfs
@ 2016-09-19 19:10 Richard Cochran
  2016-09-20  8:52 ` Richard Cochran
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Cochran @ 2016-09-19 19:10 UTC (permalink / raw)
  To: linux-unionfs


Using kernel v3.18.41, something unexpected happens when I mount two
overlays.  Once the second overlay is mounted, the binaries won't
execute any more.  Below is a simple script to demonstate the issue.
Although this uses a shell script, the same thing happens with actual
binaries.

What am I doing wrong here?

Thanks,
Richard

---8<---
cd /tmp
mkdir merged layer1 layer2 w1 w2
touch layer1/.layer1 layer2/.layer2
cat > merged/helo.sh <<-EOF
	#!/bin/sh
	echo helo
EOF
chmod +x merged/helo.sh
mount -t overlay overlay \
-oro,lowerdir=/tmp/merged,upperdir=/tmp/layer1,workdir=/tmp/w1 /tmp/merged
./merged/helo.sh
# works as expected
mount -t overlay overlay \
-orw,lowerdir=/tmp/merged,upperdir=/tmp/layer2,workdir=/tmp/w2 /tmp/merged
./merged/helo.sh
# -bash: ./merged/helo.sh: Invalid argument

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-20  8:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-19 19:10 running binaries under doubly stacked overlayfs Richard Cochran
2016-09-20  8:52 ` Richard Cochran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.