summaryrefslogtreecommitdiff
path: root/lx-trainer-vm
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2018-11-21 15:50:16 +0106
committerJohn Ogness <john.ogness@linutronix.de>2018-11-21 15:50:16 +0106
commitbc4ea502e9286bef48ee5f4d7f255c9828fd4c80 (patch)
treef786ab120425e553fb03b7c560ddd8d6c97f26cd /lx-trainer-vm
parent47e4ed873bd28ba7fc5ff6ab2f6c004f2dc207f3 (diff)
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 <john.ogness@linutronix.de>
Diffstat (limited to 'lx-trainer-vm')
-rw-r--r--lx-trainer-vm/lx-trainer-vm.xml2
1 files changed, 2 insertions, 0 deletions
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 @@
<command>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</command>
<command>tar xzf eclipse-cpp-*.tar.gz -C /opt</command>
<command>rm eclipse-cpp-*.tar.gz</command>
+ <!-- fixup /opt ownership -->
+ <command>chown -R root:root /opt</command>
<!-- keep grub simple to minimize boot issues -->
<command>echo 'GRUB_GFXPAYLOAD_LINUX=text' | tee -a /etc/default/grub</command>
<!-- disable tomoyo or else the system won't boot -->