Home
last modified time | relevance | path

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

/freebsd/tests/sys/posixshm/
H A Dmemfd_test.c86 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 Dfcntl.h276 #define F_SEAL_WRITE 0x0008 /* May not write */ macro
/freebsd/contrib/capsicum-test/
H A Dlinux.cc1458 #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 Duipc_shm.c514 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 Dlinux_file.c70 BITMAP_1t1_LINUX(F_SEAL_WRITE),