Commit a1890d8
committed
hcsv2/uvm: Restrict SCSI mount options in confidential mode
In C-LCOW, we do not want to host to be able to arbitrarily control mount
options. Currently there are two possible ways mount options might be
specified by the host:
1. For read-only mounts (image layers), option "ro" is specified (see
addLCOWLayer).
2. If the OCI spec passed by containerd contains physical/virtual disk mounts,
it might contain mount options, and hcsshim would pass this through to GCS (see
allocateLinuxResources).
We can allow 1 (and in fact, require it to be consistent with the readOnly field
in the request), and today C-LCOW does not support external disk mounts, and so
we can reject any other mount options passed via route 2.
Signed-off-by: Tingmao Wang <[email protected]>1 parent 89076fc commit a1890d8
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1225 | 1225 | | |
1226 | 1226 | | |
1227 | 1227 | | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
1228 | 1246 | | |
1229 | 1247 | | |
1230 | 1248 | | |
| |||
0 commit comments