OpenSolaris

Printable Version Enter a New Search
Bug ID 6357132
Synopsis DHCP server should not open /dev/ip
State 10-Fix Delivered (Fix available in build)
Category:Subcategory network:dhcp_server
Keywords kevlar | onnv_triage | oss-request | oss-sponsor
Sponsor Dave Miner
Submitter richlowe
Responsible Engineer Dave Miner
Reported Against snv_01
Duplicate Of
Introduced In solaris_2.6
Commit to Fix snv_36
Fixed In snv_36
Release Fixed solaris_nevada(snv_36)
Related Bugs 5042148
Submit Date 30-November-2005
Last Update Date 23-March-2006
Description
The dhcp server use the SIOCGI* series of ioctls to query the configuration
of the interfaces on the system on which it is running. The ioctl in question
needs a file descriptor that is connected to IP in order to run. To get this
fiel descriptor, the dhcp server explicitly opens /dev/ip. Unfortunately, directly
opening /dev/ip requires net_rawaccess privilege. Another way to get such a file 
descriptor is to create it with the socket syscall like so:

ip = socket(AF_INET, SOCK_DGRAM, 0)
Work Around
N/A
Comments
N/A