no, but can you tell at the time of the mmap command if anyone has it
opened for writing? if you can then you can just not allow the mmap in
thid case (policy decision by userspace, as such it can try to look at
what other programs are accessing it via mmap to decide if it should allow
it or not)
I listed that as an example of what I would consider a sane policy. by
doing the checking is a userspace library different binaries can be linked
against different libraries by the sysadmin/distro to decide which ones
need to do what checking. there's nothing inherent in the mechanism that
foces the policy in any direction.
David Lang
--