mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-30 04:34:27 +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:
parent
288e337a6f
commit
b74c18024a
@ -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(),
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user