Lines Matching refs:mount_tmp
788 char mount_slave[] = "/tmp/propagate.XXXXXX", *mount_tmp, *mount_outside, *p; in mount_in_namespace() local
865 mount_tmp = strjoina(mount_slave, "/mount"); in mount_in_namespace()
867 r = mkdir_p(mount_tmp, 0700); in mount_in_namespace()
869 r = make_mount_point_inode_from_stat(&st, mount_tmp, 0700); in mount_in_namespace()
871 log_debug_errno(r, "Failed to create temporary mount point %s: %m", mount_tmp); in mount_in_namespace()
878 …r = verity_dissect_and_mount(chased_src_fd, chased_src_path, mount_tmp, options, NULL, NULL, NULL,… in mount_in_namespace()
880 …r = mount_follow_verbose(LOG_DEBUG, FORMAT_PROC_FD_PATH(chased_src_fd), mount_tmp, NULL, MS_BIND, … in mount_in_namespace()
888 … r = mount_nofollow_verbose(LOG_DEBUG, NULL, mount_tmp, NULL, MS_BIND|MS_REMOUNT|MS_RDONLY, NULL); in mount_in_namespace()
910 r = mount_nofollow_verbose(LOG_DEBUG, mount_tmp, mount_outside, NULL, MS_MOVE, NULL); in mount_in_namespace()
918 (void) rmdir(mount_tmp); in mount_in_namespace()
920 (void) unlink(mount_tmp); in mount_in_namespace()
992 (void) umount_verbose(LOG_DEBUG, mount_tmp, UMOUNT_NOFOLLOW); in mount_in_namespace()
995 (void) rmdir(mount_tmp); in mount_in_namespace()
997 (void) unlink(mount_tmp); in mount_in_namespace()