[asterisk-bugs] [Asterisk 0014004]: [patch] restart gracefully drops cap_net_admin capability

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jan 29 16:53:42 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14004 
====================================================================== 
Reported By:                nemo
Assigned To:                blitzrage
====================================================================== 
Project:                    Asterisk
Issue ID:                   14004
Category:                   Core/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.22 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2008-12-01 15:39 CST
Last Modified:              2009-01-29 16:53 CST
====================================================================== 
Summary:                    [patch] restart gracefully drops cap_net_admin
capability
Description: 
When running asterisk as non-root and setting IP TOS to a value that
requires cap_net_admin or root privileges, ``restart gracefully'' or
similar commands will cause observed tcpdump output to show the IP TOS
value being set to 0 instead of the requested value.
====================================================================== 

---------------------------------------------------------------------- 
 (0099101) svnbot (reporter) - 2009-01-29 16:53
 http://bugs.digium.com/view.php?id=14004#c99101 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 172438

U   branches/1.4/apps/app_dahdiras.c
U   branches/1.4/apps/app_externalivr.c
U   branches/1.4/apps/app_festival.c
U   branches/1.4/apps/app_ices.c
U   branches/1.4/apps/app_mp3.c
U   branches/1.4/apps/app_nbscat.c
U   branches/1.4/autoconf/ast_func_fork.m4
U   branches/1.4/build_tools/menuselect-deps.in
U   branches/1.4/configure
U   branches/1.4/main/asterisk.c
U   branches/1.4/res/res_agi.c
U   branches/1.4/res/res_musiconhold.c

------------------------------------------------------------------------
r172438 | tilghman | 2009-01-29 16:53:41 -0600 (Thu, 29 Jan 2009) | 9
lines

Lose the CAP_NET_ADMIN at every fork, instead of at startup.  Otherwise,
if
Asterisk runs as a non-root user and the administrator does a 'restart
now',
Asterisk loses the ability to set QOS on packets.
(closes issue http://bugs.digium.com/view.php?id=14004)
 Reported by: nemo
 Patches: 
       20090105__bug14004.diff.txt uploaded by Corydon76 (license 14)
 Tested by: Corydon76

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=172438 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-29 16:53 svnbot         Checkin                                      
2009-01-29 16:53 svnbot         Note Added: 0099101                          
======================================================================




More information about the asterisk-bugs mailing list