git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tomoyo: recognize kernel threads correctly
[sfrench/cifs-2.6.git]
/
security
/
tomoyo
/
network.c
diff --git
a/security/tomoyo/network.c
b/security/tomoyo/network.c
index a89ed55d85d4126e6efb15c01477e611144faf7b..478f757ff8435ea3d54b1c456f2d71646f537dd0 100644
(file)
--- a/
security/tomoyo/network.c
+++ b/
security/tomoyo/network.c
@@
-613,7
+613,7
@@
static int tomoyo_check_unix_address(struct sockaddr *addr,
static bool tomoyo_kernel_service(void)
{
/* Nothing to do if I am a kernel service. */
- return
uaccess_kernel()
;
+ return
(current->flags & (PF_KTHREAD | PF_IO_WORKER)) == PF_KTHREAD
;
}
/**