Bug#656577: asterisk: UMASK not exported

Andriy Ivashchenko info at ai.kh.ua
Sat Jan 21 10:20:55 UTC 2012

В Fri, 20 Jan 2012 13:03:29 +0200
Tzafrir Cohen <tzafrir.cohen at xorcom.com> пишет:

> On Fri, Jan 20, 2012 at 11:26:41AM +0200, Andriy Ivashchenko wrote:
> > Package: asterisk
> > Version: 1:
> > Severity: normal
> > 
> >      Hi,
> > 
> >   UMASK did not works in RUNASTSAFE mode, because it is not
> > exported from /etc/init.d/asterisk to
> > daemon /usr/sbin/safe_asterisk. I think UMASK must be defined
> > in /etc/default/asterisk for posibility to change it and also added
> > command 'export UMASK' to init script.
> Should it be exported? Or should we create
> /etc/asterisk/startup.d/aa_debian.sh as a symlink to
> /etc/default/asterisk ? (look for startup.d in the script
> safe_asterisk).

  In safe_asterisk `umask $UMASK' happens before /etc/asterisk/startup.d/ 
If you want to do something with variables in startup.d, you should to 
worry about what to do with them. You need to do duplicate `umask $UMASK'. 
Is it really good? 
 Except UMASK, there need to export MAXFILES too. I think those vars
need to be in /etc/default/asterisk and exported to safe_asterisk.
May be somebody needs another critical variables which should be
exported from /etc/default/asterisk ? I have no one.

  Corporate Telephone Systems. VoIP. http://ai.kh.ua

More information about the Pkg-voip-maintainers mailing list