aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-16 19:55:38 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-16 19:55:38 +0000
commit23abb459414aac23edaa8ae2f61be3723606d090 (patch)
tree3d985bd95a0118f902c4342d10a3047b1b95d7fd /contrib
parentb3e810dfd861d04da9f7799a022aa35143553577 (diff)
Merged revisions 164798 via svnmerge from
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@164800 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'contrib')
-rw-r--r--contrib/scripts/safe_asterisk8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/scripts/safe_asterisk b/contrib/scripts/safe_asterisk
index c8841f3ed..719782608 100644
--- a/contrib/scripts/safe_asterisk
+++ b/contrib/scripts/safe_asterisk
@@ -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
#