running binaries under doubly stacked overlayfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux