tomoyo: remove tomoyo_gc_thread()->daemonize()
Subsystems (2)
PATCH 1/1 tomoyo: remove tomoyo_gc_thread()->daemonize()
daemonize() is only needed when a user-space task does kernel_thread().
tomoyo_gc_thread() is kthread_create()'ed and thus it doesn't need the soon-to-be-deprecated daemonize().
---
security/tomoyo/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
security/tomoyo/gc.c renamed from security/tomoyo/gc.c~1_daemonize_tomoyo +1 -1
@@ -660,7 +660,7 @@ static int tomoyo_gc_thread(void *unusedstatic DEFINE_MUTEX (tomoyo_gc_mutex);if (!mutex_trylock (&tomoyo_gc_mutex)) goto out; -daemonize ("GC for TOMOYO" ); + do { tomoyo_collect_entry(); if (list_empty(&tomoyo_gc_list))
Quoted 6 lines · Oleg Nesterov
daemonize()is only needed when a user-space task doeskernel_thread().
tomoyo_gc_thread()is kthread_create()'ed and thus it doesn't need the soon-to-be-deprecateddaemonize().Signed-off-by Oleg Nesterov <[email protected]>
Signature · 1 line
tejun
Quoted 6 lines · Oleg Nesterov
daemonize()is only needed when a user-space task doeskernel_thread().
tomoyo_gc_thread()is kthread_create()'ed and thus it doesn't need the soon-to-be-deprecateddaemonize().Signed-off-by Oleg Nesterov <[email protected]>
James Morris
maintainerQuoted 6 lines · Oleg Nesterov
daemonize()is only needed when a user-space task doeskernel_thread().
tomoyo_gc_thread()is kthread_create()'ed and thus it doesn't need the soon-to-be-deprecateddaemonize().Signed-off-by Oleg Nesterov <[email protected]>
Applied togit://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6#next
Signature · 2 lines
James Morris <[email protected]>