[svn-commits] tilghman: trunk r164798 - /trunk/contrib/scripts/safe_asterisk

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Dec 16 13:54:11 CST 2008


Author: tilghman
Date: Tue Dec 16 13:54:11 2008
New Revision: 164798

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164798
Log:
Set up umask as a possible configuration option.
(closes issue #13753)
 Reported by: irroot

Modified:
    trunk/contrib/scripts/safe_asterisk

Modified: trunk/contrib/scripts/safe_asterisk
URL: http://svn.digium.com/view/asterisk/trunk/contrib/scripts/safe_asterisk?view=diff&rev=164798&r1=164797&r2=164798
==============================================================================
--- trunk/contrib/scripts/safe_asterisk (original)
+++ trunk/contrib/scripts/safe_asterisk Tue Dec 16 13:54:11 2008
@@ -23,6 +23,10 @@
 
 # set system filemax on supported OSes if this variable is set
 # SYSMAXFILES=262144
+
+# Asterisk allows full permissions by default, so set a umask, if you want
+# restricted permissions.
+#UMASK=022
 
 # set max files open with ulimit. On linux systems, this will be automatically
 # set to the system's maximum files open devided by two, if not set here.
@@ -89,6 +93,10 @@
 
 fi
 
+if test "x$UMASK" != "x"; then
+	umask $UMASK
+fi
+
 #
 # Let Asterisk dump core
 #




More information about the svn-commits mailing list