[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox-cvs
Subject:    [Bug 6962] New: ip: addr flush hangs forever when called by non-root user
From:       bugzilla () busybox ! net
Date:       2014-03-17 17:39:49
Message-ID: bug-6962-161 () https ! bugs ! busybox ! net/
[Download RAW message or body]

https://bugs.busybox.net/show_bug.cgi?id=6962

           Summary: ip: addr flush hangs forever when called by non-root
                    user
           Product: Busybox
           Version: 1.22.x
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Networking
        AssignedTo: unassigned@busybox.net
        ReportedBy: a.gantvorg@gmx.net
                CC: busybox-cvs@busybox.net
   Estimated Hours: 0.0


Created attachment 5276
  --> https://bugs.busybox.net/attachment.cgi?id=5276
The quick-and-dirty patch that should further illustrate the issue.

When called without root privilleges, the "ip flush dev" command should return
with a "permission denied" message.

Busybox' implementation sends an according rtnl message but does not check for
response from kernel containing the error state
(networking/libiproute/ipaddress.c, flush_update()). Thus, the for-loop in
ipaddr_list_or_flush() is never left causing the applet to hang forever.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
busybox-cvs mailing list
busybox-cvs@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic