mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 09:26:52 +00:00 
			
		
		
		
	runtime-rs: fix shared volume permission issue
Fix the issue where share volumes always have readwrite permission even if readonly permission is enough. Fixes: #5549 Signed-off-by: Xuewei Niu <justxuewei@apache.org>
This commit is contained in:
		| @@ -65,7 +65,7 @@ impl ShareFsVolume { | |||||||
|                         cid: cid.to_string(), |                         cid: cid.to_string(), | ||||||
|                         source: m.source.clone(), |                         source: m.source.clone(), | ||||||
|                         target: file_name, |                         target: file_name, | ||||||
|                         readonly: false, |                         readonly: m.options.iter().any(|o| *o == "ro"), | ||||||
|                         mount_options: m.options.clone(), |                         mount_options: m.options.clone(), | ||||||
|                         mount: m.clone(), |                         mount: m.clone(), | ||||||
|                     }) |                     }) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user