Lines Matching defs:self
708 ASSERT_EQ(0, test_open("/proc/self/ns/mnt", O_RDONLY));
718 ASSERT_EQ(EACCES, test_open("/proc/self", O_RDONLY));
719 ASSERT_EQ(EACCES, test_open("/proc/self/ns", O_RDONLY));
721 * Because nsfs is an internal filesystem, /proc/self/ns/mnt is a
725 ASSERT_EQ(0, test_open("/proc/self/ns/mnt", O_RDONLY));
733 path_beneath.parent_fd = open("/proc/self/ns/mnt", O_PATH | O_CLOEXEC);
3173 static const char path_template[] = "/proc/self/fd/%d";
3214 TH_LOG("Successfully opened /proc/self/fd/%d: %s", reg_fd,
3256 /* Checks write access to pipe through /proc/self/fd . */
3261 TH_LOG("Failed to write through /proc/self/fd/%d: %s",
3266 /* Checks read access to pipe through /proc/self/fd . */
3272 TH_LOG("Failed to read through /proc/self/fd/%d: %s",
4122 self->skip_test = true;
4162 if (self->skip_test)
4196 if (self->skip_test)
4362 if (self->skip_test)
4554 .file_path = TMP_DIR "/self/status",
4581 self->skip_test = true;
4589 self->dir_path = malloc(dir_len + 1);
4590 self->dir_path[dir_len] = '\0';
4591 strncpy(self->dir_path, variant->file_path, dir_len);
4596 if (stat(self->dir_path, &statbuf)) {
4598 EXPECT_EQ(0, mkdir(self->dir_path, 0700))
4601 self->dir_path, strerror(errno));
4602 free(self->dir_path);
4603 self->dir_path = NULL;
4605 self->has_created_dir = true;
4621 self->has_created_file = true;
4628 if (self->skip_test)
4631 if (self->has_created_file) {
4641 if (self->has_created_dir) {
4647 rmdir(self->dir_path);
4650 free(self->dir_path);
4651 self->dir_path = NULL;
4657 FIXTURE_DATA(layout3_fs) * self,
4674 if (self->skip_test)
4708 layer3_fs_tag_inode(_metadata, self, variant, ".");
4713 layer3_fs_tag_inode(_metadata, self, variant, TMP_DIR);
4718 layer3_fs_tag_inode(_metadata, self, variant, self->dir_path);
4723 layer3_fs_tag_inode(_metadata, self, variant, variant->file_path);
4738 if (self->skip_test)
4742 if (self->has_created_file)
4745 if (self->has_created_dir)
4747 remove_path(self->dir_path);