From bc4ea502e9286bef48ee5f4d7f255c9828fd4c80 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Wed, 21 Nov 2018 15:50:16 +0106 Subject: lx-trainer-vm: set root:root as /opt/* owner The linaro toolchain creates files with some obscure user/group. Instead of trusting the owners/permissions of the downloaded archives, recursively set all /opt to root:root. If for some reason any files are setuid, this will also clear that bit. Signed-off-by: John Ogness --- lx-trainer-vm/lx-trainer-vm.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lx-trainer-vm') diff --git a/lx-trainer-vm/lx-trainer-vm.xml b/lx-trainer-vm/lx-trainer-vm.xml index 1189a2e..9bea614 100644 --- a/lx-trainer-vm/lx-trainer-vm.xml +++ b/lx-trainer-vm/lx-trainer-vm.xml @@ -126,6 +126,8 @@ wget http://nereus.lab.linutronix.de/schulung-mirror/ftp.fau.de/eclipse/technology/epp/downloads/release/oxygen/3a/eclipse-cpp-oxygen-3a-linux-gtk-x86_64.tar.gz tar xzf eclipse-cpp-*.tar.gz -C /opt rm eclipse-cpp-*.tar.gz + + chown -R root:root /opt echo 'GRUB_GFXPAYLOAD_LINUX=text' | tee -a /etc/default/grub -- cgit v1.2.3