Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add back the src_path filestat check before doing actual bind_mount

  • Loading branch information...
commit ec6f157163848e9fdaa790f3f0eb59df52fea36f 1 parent eaeb910
@Kaixiang Kaixiang authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 warden/lib/warden/container/linux.rb
4 warden/lib/warden/container/linux.rb
@@ -213,6 +213,10 @@ def write_bind_mount_commands(request)
src_path = bind_mount.src_path
dst_path = bind_mount.dst_path
+ # Check that the source path exists
+ stat = File.stat(src_path) rescue nil
+ raise"Source path for bind mount does not exist: #{src_path}") if stat.nil?
mode = case bind_mount.mode
when Protocol::CreateRequest::BindMount::Mode::RO
Please sign in to comment.
Something went wrong with that request. Please try again.