HomeFreeBSD

Linux: reject read/write mapping to immutable file only on VM_SHARED

Description

Linux: reject read/write mapping to immutable file only on VM_SHARED

Private read/write mapping can't be used to modify the mapped files, so
they will remain be immutable. Private read/write mappings are usually
used to load the data segment of executable files, rejecting them will
rendering immutable executable files to stop working.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: WHR <msl0000023508@gmail.com>
Closes #15344

Details

Provenance
Low-power <msl0000023508@gmail.com>Authored on Nov 8 2023, 8:19 PM
GitHub <noreply@github.com>Committed on Nov 8 2023, 8:19 PM
Parents
rG3a81bf4ad282: Workaround to allow openzfs-zfs-dkms install on Ubuntu
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGa160c153e2f4: Linux: reject read/write mapping to immutable file only on VM_SHARED (authored by Low-power <msl0000023508@gmail.com>).Nov 8 2023, 8:19 PM