Go to main content

Securing Systems and Attached Devices in Oracle® Solaris 11.3

Exit Print View

Updated: April 2019
 
 

How to Retrieve IP MIB-II Information From a /dev/* Device

Applications that retrieve Oracle Solaris IP MIB-II information should open /dev/arp, not /dev/ip.

  1. Determine the device policy on /dev/ip and /dev/arp.
    $ getdevpolicy /dev/ip /dev/arp
    /dev/ip
    read_priv_set=net_rawaccess
    write_priv_set=net_rawaccess
    /dev/arp
    read_priv_set=none
    write_priv_set=none

    Note that the net_rawaccess privilege is required for reading and writing to /dev/ip. No privileges are required for /dev/arp.

  2. Open /dev/arp and push the tcp and udp modules.

    No privileges are required. This method is equivalent to opening /dev/ip and pushing the arp, tcp, and udp modules. Because opening /dev/ip now requires a privilege, the /dev/arp method is preferred.