/usr/share/dune/cmake/modules/FindMProtect.cmake is in libdune-common-dev 2.5.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # .. cmake_module::
#
# Module that detects mprotect support
#
# Sets the following variables:
#
# * :code:`HAVE_SYS_MMAN_H`
# * :code:`HAVE_MPROTECT`
#
include(CheckIncludeFile)
check_include_file("sys/mman.h" HAVE_SYS_MMAN_H)
include(CheckCSourceCompiles)
check_c_source_compiles("
#include <sys/mman.h>
int main(void){
mprotect(0,0,PROT_NONE);
}" HAVE_MPROTECT)
|