OVAL Results
Been hacking on the OVAL results code today. The first task was to clean up the hard coded values.
Next I started working on the system_info section of the results XML. One of the things I need to have do is get a list of interfaces on a machine and collect the interface name, ip address and MAC address. Not sure if this can be handled in managed code.
In Linux I can try and parse /proc/net/dev but that doesn’t get me the MAC address. I was also considering parsing the output of ifconfig(8) but then I remembered I hate writing parsers
I need to think about this some more. Suggestions are welcome.
The last part of the OvalResults.cs code I’ve been working on is the XML namespaces. If you look at the code in the above link you’ll see I’m just setting the data via XmlElement.SetAttribute.
If I try and set xsi:schemaLocation like that then I get an exception. There must be a better way to specify multiple namespaces of an XmlElement but I’m just not seeing it right now.
Tuesday, May 31st, 2005