Home
last modified time | relevance | path

Searched refs:memfd_rw (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/capsicum-test/
H A Dlinux.cc1432 int memfd_rw = dup(memfd); in TEST() local
1434 EXPECT_OK(memfd_rw); in TEST()
1437 EXPECT_OK(cap_rights_limit(memfd_rw, cap_rights_init(&rights, CAP_MMAP_RW, CAP_FCHMOD))); in TEST()
1441 …unsigned char *p_rw = (unsigned char *)mmap(NULL, LEN, PROT_READ|PROT_WRITE, MAP_SHARED, memfd_rw,… in TEST()
1468 int seals_rw = fcntl(memfd_rw, F_GET_SEALS); in TEST()
1472 EXPECT_EQ(-1, fcntl(memfd_rw, F_ADD_SEALS, F_SEAL_WRITE)); in TEST()
1479 EXPECT_OK(fcntl(memfd_rw, F_ADD_SEALS, F_SEAL_WRITE)); in TEST()
1489 EXPECT_OK(cap_rights_limit(memfd_rw, cap_rights_init(&rights, CAP_MMAP_RW))); in TEST()
1490 EXPECT_NOTCAPABLE(fcntl(memfd_rw, F_ADD_SEALS, F_SEAL_WRITE)); in TEST()
1494 close(memfd_rw); in TEST()