Searched refs:F_SEAL_WRITE (Results 1 – 5 of 5) sorted by relevance
/freebsd/tests/sys/posixshm/ |
H A D | memfd_test.c | 86 ATF_REQUIRE(fcntl(fd, F_ADD_SEALS, F_SEAL_WRITE) == -1); in ATF_TC_BODY() 111 ATF_REQUIRE(fcntl(fd, F_ADD_SEALS, F_SEAL_WRITE) == 0); in ATF_TC_BODY() 141 ATF_REQUIRE(fcntl(fd, F_ADD_SEALS, F_SEAL_WRITE) == -1); in ATF_TC_BODY() 150 ATF_REQUIRE(fcntl(fd, F_ADD_SEALS, F_SEAL_WRITE) == -1); in ATF_TC_BODY() 155 ATF_REQUIRE(fcntl(fd, F_ADD_SEALS, F_SEAL_WRITE) == 0); in ATF_TC_BODY() 216 ATF_REQUIRE(fcntl(fd, F_ADD_SEALS, F_SEAL_WRITE | F_SEAL_GROW) == 0); in ATF_TC_BODY() 218 ATF_REQUIRE(seals == (F_SEAL_WRITE | F_SEAL_GROW)); in ATF_TC_BODY() 234 ATF_REQUIRE(fcntl(fd, F_ADD_SEALS, F_SEAL_WRITE | F_SEAL_GROW) == 0); in ATF_TC_BODY() 236 ATF_REQUIRE(seals == (F_SEAL_WRITE | F_SEAL_GROW)); in ATF_TC_BODY() 239 ATF_REQUIRE(seals == (F_SEAL_WRITE | F_SEAL_GROW)); in ATF_TC_BODY()
|
/freebsd/sys/sys/ |
H A D | fcntl.h | 276 #define F_SEAL_WRITE 0x0008 /* May not write */ macro
|
/freebsd/contrib/capsicum-test/ |
H A D | linux.cc | 1458 #define F_SEAL_WRITE 0x0008 /* prevent writes */ in TEST() macro 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() 1490 EXPECT_NOTCAPABLE(fcntl(memfd_rw, F_ADD_SEALS, F_SEAL_WRITE)); in TEST()
|
/freebsd/sys/kern/ |
H A D | uipc_shm.c | 514 if ((shmfd->shm_seals & F_SEAL_WRITE) != 0) { in shm_write() 1711 (shmfd->shm_seals & F_SEAL_WRITE) == 0) in shm_mmap() 1993 if ((nseals & F_SEAL_WRITE) != 0) { in shm_add_seals() 2113 if ((shmfd->shm_seals & F_SEAL_WRITE) != 0) { in shm_fspacectl()
|
/freebsd/sys/compat/linux/ |
H A D | linux_file.c | 70 BITMAP_1t1_LINUX(F_SEAL_WRITE),
|