aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/audit.c
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-06-21 11:22:01 -0400
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-06-21 11:22:01 -0400
commitf6a789d19858a951e7ff9e297a44b377c21b6c33 (patch)
tree5e54f1460bc048706ad6df8c5cb5bf748f067f13 /kernel/audit.c
parentae7b961b1c943367dfe179411f120d7bf8eaba89 (diff)
AUDIT: Spawn kernel thread to list filter rules.
If we have enough rules to fill the netlink buffer space, it'll deadlock because auditctl isn't ever actually going to read from the socket until we return, and we aren't going to return until it reads... so we spawn a kernel thread to spew out the list and then exit. Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'kernel/audit.c')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index ab6ac560cfe5..c1ab8dbbb67b 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -110,7 +110,7 @@ static DECLARE_WAIT_QUEUE_HEAD(kauditd_wait);
110/* The netlink socket is only to be read by 1 CPU, which lets us assume 110/* The netlink socket is only to be read by 1 CPU, which lets us assume
111 * that list additions and deletions never happen simultaneously in 111 * that list additions and deletions never happen simultaneously in
112 * auditsc.c */ 112 * auditsc.c */
113static DECLARE_MUTEX(audit_netlink_sem); 113DECLARE_MUTEX(audit_netlink_sem);
114 114
115/* AUDIT_BUFSIZ is the size of the temporary buffer used for formatting 115/* AUDIT_BUFSIZ is the size of the temporary buffer used for formatting
116 * audit records. Since printk uses a 1024 byte buffer, this buffer 116 * audit records. Since printk uses a 1024 byte buffer, this buffer