В Fri, 20 Jan 2012 13:03:29 +0200 Tzafrir Cohen <[email protected]> пишет:
> On Fri, Jan 20, 2012 at 11:26:41AM +0200, Andriy Ivashchenko wrote: > > Package: asterisk > > Version: 1:1.6.2.9-2+squeeze4 > > 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. Thanks. -- Corporate Telephone Systems. VoIP. http://ai.kh.ua -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

