[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torbrowser/maint-2.2] [2824 Linux] Explicitly refuse to run TBB-Linux as root



commit 063c2f62567282c0c3093f35b414ee52ff87aee4
Author: Robert Ransom <rransom.8774@xxxxxxxxx>
Date:   Tue Aug 23 02:09:08 2011 -0400

    [2824 Linux] Explicitly refuse to run TBB-Linux as root
---
 src/RelativeLink/RelativeLink.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/RelativeLink/RelativeLink.sh b/src/RelativeLink/RelativeLink.sh
index e33b1a8..fe00dcd 100755
--- a/src/RelativeLink/RelativeLink.sh
+++ b/src/RelativeLink/RelativeLink.sh
@@ -7,6 +7,11 @@
 #
 # Copyright 2010 The Tor Project.  See LICENSE for licensing information.
 
+if [ "`id -u`" -eq 0 ]; then
+	echo "The Tor Browser Bundle should not be run as root.  Exiting."
+	exit 1
+fi
+
 if [ "$1" ]; then
 	debug="$1"
 	printf "\nDebug enabled.\n\n"



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits