From: Richard Cochran <richardcochran@gmail.com>
To: linux-unionfs@vger.kernel.org
Subject: running binaries under doubly stacked overlayfs
Date: Mon, 19 Sep 2016 21:10:10 +0200 [thread overview]
Message-ID: <20160919191010.GC4246@netboy> (raw)
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
next reply other threads:[~2016-09-19 19:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-19 19:10 Richard Cochran [this message]
2016-09-20 8:52 ` running binaries under doubly stacked overlayfs Richard Cochran
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160919191010.GC4246@netboy \
--to=richardcochran@gmail.com \
--cc=linux-unionfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.