2 * sys_mprotect(unsigned long start, size_t len, unsigned long prot)
12 static void sanitise_mprotect(int childno
)
14 (void) common_set_mmap_ptr_len(childno
);
18 * If we successfully did an mprotect, update our record of the mappings prot bits.
20 static void post_mprotect(int childno
)
22 struct map
*map
= (struct map
*) shm
->scratch
[childno
];
24 if (shm
->syscall
[childno
].retval
!= 0)
25 map
->prot
= shm
->syscall
[childno
].a3
;
27 shm
->scratch
[childno
] = 0;
30 struct syscallentry syscall_mprotect
= {
40 .values
= { PROT_READ
, PROT_WRITE
, PROT_EXEC
, PROT_SEM
, PROT_GROWSDOWN
, PROT_GROWSUP
},
42 .sanitise
= sanitise_mprotect
,
44 .post
= post_mprotect
,