On Tuesday 27 January 2009 07:01:08 pm LC Bruzenak wrote:
> Even when I get a successful return value (from audit_log_user_message),
> I don't get my string back out in "ausearch" unless it is WAY smaller -
> ~1K or less I think.
>
> Any ideas/thoughts?

I tested like this:

auditctl -m `perl -e '{print "A"x"2048"}'`

and found its getting cutoff just under 1K. So, I checked the kernel code and 
found this:

 761                        if (msg_type != AUDIT_USER_TTY)
 762                                audit_log_format(ab, " msg='%.1024s'",
 763                                                 (char *)data);
 764                        else {

Offhand, I don't remember why the kernel sets the limit so low. It could be 
bumped some. How much, I don't know. 4K or 8K would seem fine.

-Steve

--
Linux-audit mailing list
Linux-audit@redhat.com
https://www.redhat.com/mailman/listinfo/linux-audit

Reply via email to