Kyle Evans 5dd47b52e5 posixshm: fix setting of shm_flags
Noted in D24652, we currently set shmfd->shm_flags on every
shm_open()/shm_open2(). This wasn't properly thought out; one shouldn't be
able to specify incompatible flags on subsequent opens of non-anon shm.

Move setting of shm_flags explicitly to the two places shmfd are created, as
we do with seals, and validate when we're opening a pre-existing mapping
that we've either passed no flags or we've passed the exact same flags as
the first time.

Reviewed by:	kib, markj
Differential Revision:	https://reviews.freebsd.org/D26242
2020-08-31 15:07:15 +00:00
..
2020-02-26 16:22:28 +00:00
2020-07-06 16:34:49 +00:00
2020-08-29 04:30:06 +00:00
2020-07-15 10:24:04 +00:00
2020-08-04 23:00:00 +00:00
2020-08-29 04:30:06 +00:00
2020-08-04 20:31:03 +00:00
2020-03-02 15:30:52 +00:00
2020-03-02 15:30:52 +00:00
2020-03-02 15:30:52 +00:00
2020-07-04 06:22:05 +00:00
2020-03-02 15:30:52 +00:00
2020-05-09 15:56:02 +00:00
2020-08-13 20:48:14 +00:00
2020-01-12 23:52:16 +00:00
2020-03-20 20:09:00 +00:00
2020-08-27 05:11:15 +00:00
2020-08-27 05:11:15 +00:00
2020-08-05 11:39:09 +00:00
2020-08-31 15:07:15 +00:00