Nmap Security Scanner
*Intro
*Ref Guide
*Install Guide
*Download
*Changelog
*Book
*Docs
Security Lists
*Nmap Hackers
*Nmap Dev
*Bugtraq
*Full Disclosure
*Pen Test
*Basics
*More
Security Tools
*Pass crackers
*Sniffers
*Vuln Scanners
*Web scanners
*Wireless
*Exploitation
*Packet crafters
*More
Site News
Site Search:
Exploit World
Advertising
About/Contact
Credits
Sponsors:




bugtraq logo Bugtraq mailing list archives

Linux and SIOCSIFHWADDR
From: alan () DIAMONDAGE CYMRU NET (Alan Cox)
Date: Tue, 27 May 1997 18:31:23 +0100


The following patch should nicely fix the problem allowing all users to
reconfigure downed interfaces mac addresses. Fortunately most setups
make this very hard to attack. The patch is v 2.0.30 but should apply
cleanly to all 2.0.x kernels and most 1.3 kernels. 1.2 also has this
problem. The patch won't apply directly but the change is identical.

--- net/core/dev.c~     Tue Apr  8 16:47:47 1997
+++ net/core/dev.c      Tue May 27 18:16:03 1997
@@ -1427,7 +1427,6 @@
                case SIOCGIFMTU:
                case SIOCGIFMEM:
                case SIOCGIFHWADDR:
-               case SIOCSIFHWADDR:
                case SIOCGIFSLAVE:
                case SIOCGIFMAP:
                        return dev_ifsioc(arg, cmd);
@@ -1444,6 +1443,7 @@
                case SIOCSIFMETRIC:
                case SIOCSIFMTU:
                case SIOCSIFMEM:
+               case SIOCSIFHWADDR:
                case SIOCSIFMAP:
                case SIOCSIFSLAVE:
                case SIOCADDMULTI:

Alan



  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]