[Apparmor-dev] Language preferance anyone?
John Johansen
jjohansen at suse.de
Thu Aug 2 16:10:14 MDT 2007
On Thu, Aug 02, 2007 at 05:52:44PM -0400, Grant Defayette wrote:
> I have noticed that the apparmor utils are written exclusively in perl
> (sometimes this makes me very sad). I am working on a basic lib in C++
me too
> that will re-implement many of the functions that the apparmor tools
> carry out. I am not doing this because the current tools aren't good
> enough, I just wanted a cleaner api than calling them directly and
> parsing the output.
sounds good
> I am coming to a wall with the profile generation and log parsing. I
> don't want to have to try and reproduce all of the great work that has
> gone into the current code, but I am faced again with not wanting the
> messy solution of calling logprof and parsing its output. This can be
> done and would be somewhat reliable, but I would much prefer to work
> with a log parser library.
hehe, may I suggest you look at the new libapparmor, matt merged the
libaalogparse and libapparmor libraries into one. It provides full log
parsing for both old and new style log syntax.
you can grab it from svn
https://forgesvn1.novell.com/svn/apparmor/trunk/changehat/libapparmor/
> If anyone has had any luck interfacing SubDomain.pl(or pearl in
> general) with C++, a C/C++ lib that will help, any links, or suggestions
> at all please let me know.
Sorry I don't know of anyone doing this though it should be possible.
Another possible route is to use the parser library that is in development.
There is a mostly working version that was done in antlr 2 but matt
has been updating to use antlr 3. I don't think it is the public
svn but if you would like to work with and and are willing to accept
that some changes will happen then I am sure we can make it available
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://forge.novell.com/pipermail/apparmor-dev/attachments/20070802/a80a75bf/attachment.pgp
More information about the Apparmor-dev
mailing list