--- ../safe_asterisk 2008-10-21 23:29:36.000000000 +0200 +++ contrib/scripts/safe_asterisk 2008-10-21 23:31:33.000000000 +0200 @@ -21,6 +21,9 @@ # run asterisk with this priority PRIORITY=0 +# asterisk stores files on the local filesystem these may be sensitive set the umask to prevent world access +UMASK=027 + # set system filemax on supported OSes if this variable is set # SYSMAXFILES=262144 @@ -86,7 +89,9 @@ # set the process's filemax to whatever set above ulimit -n $MAXFILES - + if [ "$UMASK" ];then + umask $UMASK + fi fi #