diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-16 19:54:51 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-12-16 19:54:51 +0000 |
commit | 2ef8d2f92c05fab51b1c9d67b664aa3abbefa238 (patch) | |
tree | c02efb557c83952de878663bbe64c24aa80be2f3 /contrib | |
parent | 57ab1f275aebf303e35f1d8f6415d88fb497fb9c (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.1@164799 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/scripts/safe_asterisk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/scripts/safe_asterisk b/contrib/scripts/safe_asterisk index 6ff110bfd..33a477d07 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 # |