Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3efeda7

Browse files
committedAug 29, 2022
Update example plugin documentation
1 parent 35a9c05 commit 3efeda7

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed
 

‎TODO

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ Future roadmap (subject to change):
22
===================================
33
3.1
44
* Basic HIDS based on reactive audit component
5+
* Multi-thread audisp-remote
56
* Add keywords for time: month-ago, this-hour, last-hour
67
* If searching user/group doesn't map to uid/gid, do translated string search
78
* In auditd, look into non-blocking handling of write to plugins
89
* Support multiple time streams when searching
910

1011
3.2
11-
* Multi-thread audisp-remote
1212
* Container support
1313
* Support TLS PSK as remote logging transport
1414
* Add rule verify to detect mismatch between in-kernel and on-disk rules

‎contrib/plugin/audisp-example.c

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,19 @@
3030
* It will print things to stdout. In a real program, you wouldn't
3131
* do anything with stdout since that is likely to be pointing to /dev/null.
3232
*
33-
* Excluding some init/destroy items you might need to add to main, the
33+
* Excluding some init/destroy items you might need to add to main, the
3434
* event_handler function is the main place that you would modify to do
35-
* things specific to your plugin.
35+
* things specific to your plugin.
3636
*
37+
* Also, note that for a "real" plugin, you may have to add an internal queue
38+
* to your application. If plugins do any kind of networking or in depth
39+
* processing of incoming events, auditd's internal queue can overflow because
40+
* the socket connecting to the plugin's stdin get backed up. When audit has
41+
* nowhere to put events, the kernel's audit backlog can get filled up.
42+
* If that happens, the backlog_wait_time is consulted by the kernel which
43+
* may have the effect of slowing down the whole system. A good design would be
44+
* to have 2 threads, one watching for inbound events and one doing the
45+
* processing of the events with a configurable queue in between.
3746
*/
3847

3948
#define _GNU_SOURCE

0 commit comments

Comments
 (0)
Please sign in to comment.