Re: Dissociating process from bin's filesystem

From: Eric W. Biederman (ebiederm@xmission.com)
Date: Sat Apr 27 2002 - 14:03:11 EST


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Apr 30 2002 - 22:00:14 EST