mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 21:20:01 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user