mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-17 22:34:25 +01: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(),
|
||||
source: m.source.clone(),
|
||||
target: file_name,
|
||||
readonly: false,
|
||||
readonly: m.options.iter().any(|o| *o == "ro"),
|
||||
mount_options: m.options.clone(),
|
||||
mount: m.clone(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user