All of lore.kernel.org
 help / color / mirror / Atom feed
* audit_send function in netlink socket
@ 2011-01-19 10:30 Ashok Kumar J
  2011-01-19 13:40 ` Steve Grubb
  0 siblings, 1 reply; 2+ messages in thread
From: Ashok Kumar J @ 2011-01-19 10:30 UTC (permalink / raw)
  To: linux-audit


[-- Attachment #1.1: Type: text/plain, Size: 211 bytes --]

Dear ALL,

          I saw the function audit_send in the file netlink.c. But i did not
get any man pages for this. I want to know the description of this
structure. Thanks all.

-- 
with regards

Ashok Kumar J

[-- Attachment #1.2: Type: text/html, Size: 260 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: audit_send function in netlink socket
  2011-01-19 10:30 audit_send function in netlink socket Ashok Kumar J
@ 2011-01-19 13:40 ` Steve Grubb
  0 siblings, 0 replies; 2+ messages in thread
From: Steve Grubb @ 2011-01-19 13:40 UTC (permalink / raw)
  To: linux-audit

On Wednesday, January 19, 2011 05:30:15 am Ashok Kumar J wrote:
>           I saw the function audit_send in the file netlink.c. But i did
> not get any man pages for this. I want to know the description of this
> structure.

If you look in lib/private.h
extern int audit_send(int fd, int type, const void *data, unsigned int size)
        hidden;

Its a hidden function that is not part of the public API and that is why there is no 
man page. What it sends to the kernel is:

struct audit_message {
        struct nlmsghdr nlh;
        char   data[MAX_AUDIT_MESSAGE_LENGTH];
};

The data format varies with each kind of command sent. The commands are found in 
/usr/include/linux/audit.h with a numeric value between 1000 and 1099. Some commands 
have lots of data, such as the ADD_RULE command. However, some have no data, such as 
the LIST_RULES command.

This is not documented in man pages because the logic is embodied in the library and 
it was never anticpated that the audit system be operated without at least libaudit.

-Steve

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-19 13:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-19 10:30 audit_send function in netlink socket Ashok Kumar J
2011-01-19 13:40 ` Steve Grubb

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.