/[linux-patches]/genpatches-2.6/trunk/2.6.14/1038_4_kauditd-try-to-freeze.patch
Gentoo

Contents of /genpatches-2.6/trunk/2.6.14/1038_4_kauditd-try-to-freeze.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 232 - (show annotations) (download) (as text)
Thu Dec 15 16:22:43 2005 UTC (14 years, 11 months ago) by dsd
File MIME type: text/x-diff
File size: 1259 byte(s)
Linux 2.6.14.4
1 From stable-bounces@linux.kernel.org Mon Dec 12 12:32:49 2005
2 Date: Mon, 12 Dec 2005 10:03:35 -0800
3 Message-Id: <200512121803.jBCI3Ze6006729@hera.kernel.org>
4 From: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
5 To: git-commits-head@vger.kernel.org
6 Cc:
7 Subject: Add try_to_freeze to kauditd
8
9 From: Pierre Ossman <drzeus@drzeus.cx>
10
11 kauditd was causing suspends to fail because it refused to freeze. Adding
12 a try_to_freeze() to its sleep loop solves the issue.
13
14 Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
15 Acked-by: Pavel Machek <pavel@suse.cz>
16 Cc: David Woodhouse <dwmw2@infradead.org>
17 Signed-off-by: Andrew Morton <akpm@osdl.org>
18 Signed-off-by: Linus Torvalds <torvalds@osdl.org>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
20
21 ---
22 kernel/audit.c | 4 +++-
23 1 file changed, 3 insertions(+), 1 deletion(-)
24
25 --- linux-2.6.14.3.orig/kernel/audit.c
26 +++ linux-2.6.14.3/kernel/audit.c
27 @@ -291,8 +291,10 @@ int kauditd_thread(void *dummy)
28 set_current_state(TASK_INTERRUPTIBLE);
29 add_wait_queue(&kauditd_wait, &wait);
30
31 - if (!skb_queue_len(&audit_skb_queue))
32 + if (!skb_queue_len(&audit_skb_queue)) {
33 + try_to_freeze();
34 schedule();
35 + }
36
37 __set_current_state(TASK_RUNNING);
38 remove_wait_queue(&kauditd_wait, &wait);

  ViewVC Help
Powered by ViewVC 1.1.20