From: Ville Herva <vherva@mail.niksula.cs.hut.fi>
To: Alexander Viro <viro@math.psu.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: mount --bind and -o [re: nosuid/noexec/nodev handling]
Date: Sun, 14 Oct 2001 20:23:36 +0300 [thread overview]
Message-ID: <20011014202336.T1074@niksula.cs.hut.fi> (raw)
In-Reply-To: <20011014191218.Q1074@niksula.cs.hut.fi> <Pine.GSO.4.21.0110141217000.6026-100000@weyl.math.psu.edu>
In-Reply-To: <Pine.GSO.4.21.0110141217000.6026-100000@weyl.math.psu.edu>; from viro@math.psu.edu on Sun, Oct 14, 2001 at 12:20:34PM -0400
On Sun, 14 Oct 2001, Ville Herva wrote:
>
> $ mount --bind -o nosuid,noexec,ro /bin /tmp/test
> $ mount --bind -o nosuid,noexec,ro /bin /tmp/test
> $ mount --bind -o remount,nosuid,noexec,ro /tmp/test
Ignore the that, sorry.
For simplicity's sake, I changed the dirs in the above example. In reality
the situation was more like this:
/mnt1 and /mnt2 are separate fs's.
/mnt2/test1 is symlink to /mnt1/directory
then
mount --bind -o ro /mnt2/test1 /mnt2/test2
mount --bind -o remount,ro /mnt2/test2
but it seems I'm longer able to duplicate that either. (The reason I was
able to duplicate it in the first place was propably that the first hanging
mount process kept /mnt2/test1 somehow busy and I retried with mount --bind
-o ro /mnt2/test1 /mnt2/test3.)
I'll drop you a note if I figure out how to reproduce it.
BTW: This should be reproducible (for what it's worth):
$ mount
(...)
/dev/hde1 on /mnt/ext2-2 type reiserfs (rw,noatime,nodiratime)
$ touch /mnt/ext2-2/a
$ rm /mnt/ext2-2/a
$ mount --bind -o ro /mnt/ext2-2 /tmp/test
$ mount --bind -o remount,ro /tmp/test
$ mount
(...)
/dev/hde1 on /mnt/ext2-2 type reiserfs (rw,noatime,nodiratime)
/mnt/ext2-2 on /tmp/test type none (ro,bind)
$ touch /mnt/ext2-2/a
touch: /mnt/ext2-2/a: Read-only file system
$ umount /tmp/test
$ mount
(...)
/dev/hde1 on /mnt/ext2-2 type reiserfs (rw,noatime,nodiratime)
$ touch /mnt/ext2-2/a
touch: /mnt/ext2-2/a: Read-only file system
$ mount -o remount,rw /mnt/ext2-2
$ touch /mnt/ext2-2/a
-- v --
v@iki.fi
next prev parent reply other threads:[~2001-10-14 17:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-14 15:59 Ville Herva
2001-10-14 16:06 ` Alexander Viro
2001-10-14 16:12 ` Ville Herva
2001-10-14 16:20 ` Alexander Viro
2001-10-14 17:09 ` Ville Herva
2001-10-14 17:23 ` Ville Herva [this message]
2001-10-14 17:32 ` Alexander Viro
2001-10-14 16:22 ` Ville Herva
2001-10-14 16:29 ` Alexander Viro
2001-10-14 17:44 ` Ville Herva
2001-10-14 23:37 ` Bernd Eckenfels
2001-10-14 23:48 ` Alexander Viro
2001-10-15 6:53 ` Ville Herva
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=20011014202336.T1074@niksula.cs.hut.fi \
--to=vherva@mail.niksula.cs.hut.fi \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@math.psu.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®