[LTP] [PATCH 4/4] syscalls/mmap04: Rewrite the test using new LTP API

Cyril Hrubis chrubis@suse.cz
Tue Aug 29 12:03:46 CEST 2023


Hi!
This is nearly identical to the mmap02.c and the same comments apply
here.

Also the test does not check the PROT_EXEC part at all. If we wanted to
properly test PROT_EXEC we would have to copy a function code to the
file first then execute it, something that mprotect04 does, but since
that flag is already tested in mprotect04 it does not make that much
sense to have it here as well.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list