diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-12-16 19:54:11 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-12-16 19:54:11 +0000 |
commit | 326653d5e869e95f1032f368010446c8af90b17f (patch) | |
tree | 39a5761693cba0b3eba56006efe6b7bda71906b6 /contrib/scripts/safe_asterisk | |
parent | 556b08252289bdabef3930b492ee013a4c317c83 (diff) |
Set up umask as a possible configuration option.
(closes issue #13753)
Reported by: irroot
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@164798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'contrib/scripts/safe_asterisk')
-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 6dfb95373..6f3b5ebef 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 # |