Lines Matching refs:mprotect
20 * 1) mprotect() succeeds to set a region of memory with no access,
23 * 2) mprotect() succeeds to set a region of memory to be executed, when
106 TEST(mprotect(addr, page_sz, PROT_NONE));
109 tst_resm(TFAIL | TTERRNO, "mprotect failed");
116 tst_resm(TPASS, "test PROT_NONE for mprotect success");
119 tst_resm(TFAIL, "test PROT_NONE for mprotect failed");
208 TEST(mprotect(page_to_copy, page_sz, PROT_READ | PROT_EXEC));
211 "mprotect(PROT_READ|PROT_EXEC) failed");
256 TEST(mprotect(p, page_sz, PROT_EXEC));
259 tst_resm(TFAIL | TTERRNO, "mprotect failed");
266 tst_resm(TFAIL, "test PROT_EXEC for mprotect failed");
269 tst_resm(TPASS, "test PROT_EXEC for mprotect success");