From 1780a64476e4b64da26852662f2ac9152aa1c3b5 Mon Sep 17 00:00:00 2001 From: Oguz Bektas Date: Thu, 11 Jul 2019 15:08:30 +0200 Subject: [PATCH] filter unusable lxc mountoptions for rootfs disable nodev and noexec per thomas' suggestion[0]. [0]: https://pve.proxmox.com/pipermail/pve-devel/2019-July/037994.html Signed-off-by: Oguz Bektas --- www/manager6/lxc/MPEdit.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/www/manager6/lxc/MPEdit.js b/www/manager6/lxc/MPEdit.js index 364fcc46..c36d26bd 100644 --- a/www/manager6/lxc/MPEdit.js +++ b/www/manager6/lxc/MPEdit.js @@ -58,6 +58,14 @@ Ext.define('PVE.lxc.MountPointInputPanel', { if (mp.mountoptions) { mp.mountoptions = mp.mountoptions.split(';'); } + + if (this.confid === 'rootfs') { + var field = me.down('field[name=mountoptions]'); + var forbidden = ['nodev', 'noexec']; + var filtered = field.comboItems.filter(e => !forbidden.includes(e[0])); + field.setComboItems(filtered); + } + me.setValues(mp); },