]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 164798 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Tue, 16 Dec 2008 19:55:38 +0000 (19:55 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Tue, 16 Dec 2008 19:55:38 +0000 (19:55 +0000)
https://origsvn.digium.com/svn/asterisk/trunk

........
  r164798 | tilghman | 2008-12-16 13:54:11 -0600 (Tue, 16 Dec 2008) | 4 lines

  Set up umask as a possible configuration option.
  (closes issue #13753)
   Reported by: irroot
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@164800 65c4cc65-6c06-0410-ace0-fbb531ad65f3

contrib/scripts/safe_asterisk

index c8841f3edbc67ff2416f1abe3a3ea6c107e45a75..7197826087ce67f7df96a873296e50cfedbe0909 100644 (file)
@@ -24,6 +24,10 @@ PRIORITY=0
 # 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.
 # MAXFILES=32768
@@ -89,6 +93,10 @@ else
 
 fi
 
+if test "x$UMASK" != "x"; then
+       umask $UMASK
+fi
+
 #
 # Let Asterisk dump core
 #