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
Tony Hutter <hutter2@llnl.gov>Committed on Nov 16 2023, 10:23 PM
Parents
rG76663fe3720b: Fix accounting error for pending sync IO ops in zpool iostat
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGf2fe4d51a8da: Linux: reject read/write mapping to immutable file only on VM_SHARED (authored by Low-power <msl0000023508@gmail.com>).Nov 16 2023, 10:23 PM