From: ebiederm@xmission.com (Eric W. Biederman)
To: Padraig Brady <padraig@antefacto.com>
Cc: ebuddington@wesleyan.edu, linux-kernel@vger.kernel.org
Subject: Re: Dissociating process from bin's filesystem
Date: 27 Apr 2002 13:03:11 -0600 [thread overview]
Message-ID: <m1znzp0xsg.fsf@frodo.biederman.org> (raw)
In-Reply-To: <20020424224714.B19073@ma-northadams1b-46.bur.adelphia.net> <3CC7EBC3.6030707@antefacto.com>
Padraig Brady <padraig@antefacto.com> writes:
> I'm think this is not possible at the moment.
>
> The file of the executing process is in use as the backing store for
> one or more live virtual memory areas, so changing it could
> corrupt the processes using those areas. Hence you can't umount.
>
> Now the Mach kernel has a MAP_COPY flag to the mmap system call
> which would do what you want, but this is mucho complex/messy,
> so don't hold your breath for a linux implementation.
>
> A related note on shared libraries is you don't get the
> "text file busy" message if you update them while they're in use,
> like you do for executable files. The reason is MAP_DENYWRITE
> is ignored for security reasons. I think Eric Biederman has
> a workaround though?
I played with it but could find nothing better than.
chmod a-w file
And it wasn't terribly important personally so I dropped it.
Eric
next prev parent reply other threads:[~2002-04-27 19:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-25 2:47 Eric Buddington
2002-04-25 3:42 ` James Cassidy
2002-04-25 8:52 ` john slee
2002-04-25 9:22 ` johan.adolfsson
2002-04-25 11:42 ` Padraig Brady
2002-04-27 19:03 ` Eric W. Biederman [this message]
2002-04-25 12:28 ` Rob Landley
2002-04-25 17:52 ` Chris Friesen
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=m1znzp0xsg.fsf@frodo.biederman.org \
--to=ebiederm@xmission.com \
--cc=ebuddington@wesleyan.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=padraig@antefacto.com \
/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®