From owner-soc-status@FreeBSD.ORG Mon Jun 15 19:40:28 2009 Return-Path: Delivered-To: soc-status@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D996B106566B for ; Mon, 15 Jun 2009 19:40:28 +0000 (UTC) (envelope-from codermaniac@gmail.com) Received: from mail-qy0-f173.google.com (mail-qy0-f173.google.com [209.85.221.173]) by mx1.freebsd.org (Postfix) with ESMTP id 95EC38FC0C for ; Mon, 15 Jun 2009 19:40:28 +0000 (UTC) (envelope-from codermaniac@gmail.com) Received: by qyk3 with SMTP id 3so5157691qyk.3 for ; Mon, 15 Jun 2009 12:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=F4CFOZ5Gy1r5r2lX75sJod/ep5+aaquq9qoZd8WSuUU=; b=qkpvwW2Q9j/U3IpijflaxQanli6RJX5lk6xMPCABz5SA4+xhJGgzHaAQZ5ipSFLjjX 669h49vyZng/Z/zYRnce5ubg3eczyPhoL2ENfVEN1bIVNJoLBqCErwWuqlVS6IpaGDi2 w1uRO6AeLezHWTp01QqiIyPB6SiyvryD/KbFk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=GsQ1ACzv5XS6bp2KZpL7YSmEv2SgBZwO93OZj9w8iAVxaZqbuy9kQaRKQpGSkBm9Ke 6JRNnTmKBKBHWA88XpakMTCipxAqa80P8qPWn/RNoXZ+6/3mcmtZv4+u3JiJTjfpnm/x YtN+dj0llMflGtWTE7o1kzLKq9BSt5BoDksCc= MIME-Version: 1.0 Received: by 10.229.79.7 with SMTP id n7mr1435829qck.87.1245094827827; Mon, 15 Jun 2009 12:40:27 -0700 (PDT) Date: Tue, 16 Jun 2009 01:10:27 +0530 Message-ID: <4e54a5870906151240p64ce2d57odc4b3377d4c672bd@mail.gmail.com> From: Satish Srinivasan To: soc-status@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: BSM converters Status Report 2 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jun 2009 19:40:29 -0000 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