Skip to contentSkip to conversation

Audit Subsystem Documentation

DISCUSSION Azrael 2 participants 2 messages Sep 27, 2006 – Sep 28, 2006

lore
Share & tools
lore

Azrael

author
#0 lore raw

Where can I find documentation regarding the underlying audit subsystem within the Linux kernel? Specifically, the protocol docs for NETLINK_AUDIT, so that I may query the subsystem from any sort of language that supports NETLINK socket communication.

Does such documentation even exist? If not, could somebody provide me with samples or a basic idea/flow of how it all works? I'd be willing to write it all down for public viewing if it hasn't yet been done and if someone can get me started.

Thanks,
Azrael

#1 lore raw
Quoted 2 lines · Azrael

Where can I find documentation regarding the underlying audit subsystem within the Linux kernel?

Not sure if there is much docs publicly available. Not because we don't want it, but very little developer time.

Quoted 3 lines

Specifically, the protocol docs for NETLINK_AUDIT, so that I may query the subsystem from any sort of language that supports NETLINK socket communication.

There's not really a protocol per-se, you send a command and expect a response. But you always get something back. The commands are in linux/audit.h header file. Aside from that, you'd probably just want to look at libaudit source code.

Quoted 1 line

Does such documentation even exist?

Not really.

Quoted 2 lines

If not, could somebody provide me with samples or a basic idea/flow of how it all works?

auditctl.c + libaudit pretty much shows it.

Quoted 2 lines

I'd be willing to write it all down for public viewing if it hasn't yet been done and if someone can get me started.

That would be nice. We would like some docs available, but are short for time.

-Steve