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

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jan 29 17:14:52 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:                     closed
Asterisk Version:           1.4.22 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-12-01 15:39 CST
Last Modified:              2009-01-29 17:14 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0099102) svnbot (reporter) - 2009-01-29 17:14
 http://bugs.digium.com/view.php?id=14004#c99102 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 172441

_U  trunk/
U   trunk/apps/app_rpt.c
U   trunk/autoconf/ast_func_fork.m4
U   trunk/configure
U   trunk/main/app.c
U   trunk/main/asterisk.c

------------------------------------------------------------------------
r172441 | tilghman | 2009-01-29 17:14:51 -0600 (Thu, 29 Jan 2009) | 16
lines

Merged revisions 172438 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r172438 | tilghman | 2009-01-29 16:54:29 -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=172441 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-29 17:14 svnbot         Checkin                                      
2009-01-29 17:14 svnbot         Note Added: 0099102                          
======================================================================




More information about the asterisk-bugs mailing list