Lines Matching refs:fsfd
117 int fsfd = fsopen("proc", FSOPEN_CLOEXEC); in TEST_F() local
118 ASSERT_SUCCESS(fsfd); in TEST_F()
120 ASSERT_SUCCESS(fsconfig(fsfd, FSCONFIG_SET_STRING, "pidns", "/tmp/dummy/pidns", 0)); in TEST_F()
121 ASSERT_SUCCESS(fsconfig(fsfd, FSCONFIG_CMD_CREATE, NULL, NULL, 0)); in TEST_F()
123 int mountfd = fsmount(fsfd, FSMOUNT_CLOEXEC, 0); in TEST_F()
129 ASSERT_SUCCESS(close(fsfd)); in TEST_F()
135 int fsfd = fsopen("proc", FSOPEN_CLOEXEC); in TEST_F() local
136 ASSERT_SUCCESS(fsfd); in TEST_F()
138 ASSERT_SUCCESS(fsconfig(fsfd, FSCONFIG_SET_FD, "pidns", NULL, self->dummy_pidns)); in TEST_F()
139 ASSERT_SUCCESS(fsconfig(fsfd, FSCONFIG_CMD_CREATE, NULL, NULL, 0)); in TEST_F()
141 int mountfd = fsmount(fsfd, FSMOUNT_CLOEXEC, 0); in TEST_F()
147 ASSERT_SUCCESS(close(fsfd)); in TEST_F()
167 int fsfd = fsopen("proc", FSOPEN_CLOEXEC); in TEST_F() local
168 ASSERT_SUCCESS(fsfd); in TEST_F()
170 ASSERT_SUCCESS(fsconfig(fsfd, FSCONFIG_CMD_CREATE, NULL, NULL, 0)); in TEST_F()
172 int mountfd = fsmount(fsfd, FSMOUNT_CLOEXEC, 0); in TEST_F()
178 ASSERT_ERRNO_EQ(-EBUSY, fsconfig(fsfd, FSCONFIG_SET_STRING, "pidns", "/tmp/dummy/pidns", 0)); in TEST_F()
179 ASSERT_SUCCESS(fsconfig(fsfd, FSCONFIG_CMD_RECONFIGURE, NULL, NULL, 0)); /* noop */ in TEST_F()
184 ASSERT_SUCCESS(close(fsfd)); in TEST_F()
190 int fsfd = fsopen("proc", FSOPEN_CLOEXEC); in TEST_F() local
191 ASSERT_SUCCESS(fsfd); in TEST_F()
193 ASSERT_SUCCESS(fsconfig(fsfd, FSCONFIG_CMD_CREATE, NULL, NULL, 0)); in TEST_F()
195 int mountfd = fsmount(fsfd, FSMOUNT_CLOEXEC, 0); in TEST_F()
201 ASSERT_ERRNO_EQ(-EBUSY, fsconfig(fsfd, FSCONFIG_SET_FD, "pidns", NULL, self->dummy_pidns)); in TEST_F()
202 ASSERT_SUCCESS(fsconfig(fsfd, FSCONFIG_CMD_RECONFIGURE, NULL, NULL, 0)); /* noop */ in TEST_F()
207 ASSERT_SUCCESS(close(fsfd)); in TEST_F()