Lines Matching defs:seals
193 static void mfd_assert_has_seals(int fd, unsigned int seals)
200 if (s != seals) {
201 printf("%u != %u = GET_SEALS(%s)\n", seals, s, buf);
206 static void mfd_assert_add_seals(int fd, unsigned int seals)
212 r = fcntl(fd, F_ADD_SEALS, seals);
214 printf("ADD_SEALS(%d, %u -> %u) failed: %m\n", fd, s, seals);
219 static void mfd_fail_add_seals(int fd, unsigned int seals)
230 r = fcntl(fd, F_ADD_SEALS, seals);
233 fd, s, seals);
885 * A very basic sealing test to see whether setting/retrieving seals works.
897 /* add basic seals */
910 /* add more seals and seal against sealing */
1456 * Test that seals are shared between dupped FDs and they're all equal.
1497 * Modifying seals is only allowed if no other mmap() refs exist.