Date: Tue, 16 Jun 2009 01:10:27 +0530 From: Satish Srinivasan <codermaniac@gmail.com> To: soc-status@freebsd.org Subject: BSM converters Status Report 2 Message-ID: <4e54a5870906151240p64ce2d57odc4b3377d4c672bd@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, I've been working on the xml2bsm tool to convert the XML output of praudit -x to BSM. There were lots of style(9) problems in my code, which my mentor pointed out. I've corrected them. My mentor also suggested a simpler way to parse the XML output to call the libbsm functions in au_to_* which made my code a lot simpler and straight forward. I had to spend a couple of days tracking down a undocumented bug / feature in the parser or XML output which returns the name of the current node as "text" for any newline, space or char read outside the tags, which my code (mis)understood as the "text" token :(. On the whole I think I've understood libbsm a lot better after this week. There is still work to be done on the tool for some tokens. The tool is at //depot/projects/soc2009/trailconv/xml2bsm. Thank You. satish
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4e54a5870906151240p64ce2d57odc4b3377d4c672bd>