From 82d27f1573b395064136ce385af8282b4b4cc59f Mon Sep 17 00:00:00 2001 From: Taylor Helsper Date: Tue, 7 Apr 2020 12:08:38 -0500 Subject: [PATCH] Set sticky bit on /tmp --- rootfs/standard/usr/bin/mynode_startup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootfs/standard/usr/bin/mynode_startup.sh b/rootfs/standard/usr/bin/mynode_startup.sh index 12d0420a..d93b1a4c 100755 --- a/rootfs/standard/usr/bin/mynode_startup.sh +++ b/rootfs/standard/usr/bin/mynode_startup.sh @@ -10,6 +10,9 @@ if [ ! -w / ]; then mount -o remount,rw /; fi +# Set sticky bit on /tmp +chmod +t /tmp + # Make sure resolv.conf is a symlink to so resolvconf works # if [ ! -h /etc/resolv.conf ]; then # rm -f /etc/resolv.conf @@ -22,6 +25,7 @@ fi # sleep 10s # exit 1 # fi + # Add some DNS servers to make domain lookup more likely echo '' >> /etc/resolv.conf echo '# Added at myNode startup' >> /etc/resolv.conf