From: Thomas Hood <jdthood@aglu.demon.nl>
To: linux-kernel@vger.kernel.org
Subject: Re: Patch to make mount follow a symlink at /etc/mtab
Date: Sun, 17 Jul 2005 18:07:20 +0200 [thread overview]
Message-ID: <20050717160720.GA7170@aglu.demon.nl> (raw)
I wrote:
> I attach a patch that modifies the mount program in the util-linux
> package so that if /etc/mtab is a symbolic link (to a location outside
> of /proc) then mount accesses mtab at the target of the symbolic link.
I have discovered a problem with the patch I posted here. With the
patch applied, umount aborts if it is called without "-n" and the mtab
file is not writable. This is different from the current behavior of
the umount program and, I have discovered, there are scripts out there
that run umount without "-n" when the root filesystem is mounted
read-only. So I have changed the patch to make umount not abort if
mtab is not writable and "-n" is not specified.
Get the updated patch at:
http://panopticon.csustan.edu/thood/readonly-root.html
--
Thomas Hood
next reply other threads:[~2005-07-17 16:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-17 16:07 Thomas Hood [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-07-14 11:31 Patch to make mount follow a symlink at /etc/mtab Thomas Hood
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=20050717160720.GA7170@aglu.demon.nl \
--to=jdthood@aglu.demon.nl \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox