fdlopen(3)
Dag-Erling Smørgrav
des at des.no
Fri Dec 30 13:12:32 UTC 2011
Xin LI <delphij at gmail.com> writes:
> Kostik Belousov <kostikbel at gmail.com> writes:
> > Xin LI <delphij at gmail.com> writes:
> > > Will this prevent e.g. writes to the .so file after open, but
> > > before fdlopen()?
> > How can it ? Even in theory ?
> e.g. process 1 open(), check for permissions, etc., then process 2
> open() for write, write something, then process proceed with
> fdlopen()? (We do not have mandatory "lock" on file handles to
> prevent writing I think?).
I think Kostik meant "how could you, even in theory, prevent this from
happening", and the answer is that you can't.
DES
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-arch
mailing list