Kyle Evans 51a16c8412 posixshm: fix counting of writable mappings
Similar to mmap'ing vnodes, posixshm should count any mapping where maxprot
contains VM_PROT_WRITE (i.e. fd opened r/w with no write-seal applied) as
writable and thus blocking of any write-seal.

The memfd tests have been amended to reflect the fixes here, which notably
includes:

1. Fix for error return bug; EPERM is not a documented failure mode for mmap
2. Fix rejection of write-seal with active mappings that can be upgraded via
    mprotect(2).

Reported by:	markj
Discussed with:	markj, kib
2020-04-14 13:32:03 +00:00
..
2017-10-31 00:07:04 +00:00
2018-08-16 22:04:00 +00:00
2018-08-16 22:04:00 +00:00
2019-09-25 18:03:18 +00:00
2018-11-30 23:47:57 +00:00
2018-03-21 04:44:19 +00:00