Change shared to slave due security reasons

I’ve confirmed that a privileged container can unmount a host target if
the volume map is mounted as shared. With slave propagation, the
unmount only took place inside the container, without affecting the
host target.
This commit is contained in:
gfjardim
2016-03-16 19:09:59 -03:00
parent 0113515de9
commit ff93c67e07

View File

@@ -940,7 +940,7 @@ $showAdditionalInfo = '';
var index = $(el)[0].selectedIndex;
if (index == 0) {
// Path
mode.html("<dt>Mode</dt><dd><select name='Mode'><option value='rw'>Read/Write</option><option value='rw,shared'>RW/Shared</option></option><option value='ro'>Read Only</option></select></dd>");
mode.html("<dt>Mode</dt><dd><select name='Mode'><option value='rw'>Read/Write</option><option value='rw,slave'>RW/Slave</option></option><option value='ro'>Read Only</option></select></dd>");
value.bind("click", function(){openFileBrowser(this,$(this).val(), 'sh', true, false);});
} else if (index == 1) {
// Port