summaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorAl Viro2008-01-10 10:53:18 +0100
committerAl Viro2008-02-01 20:05:28 +0100
commitbfef93a5d1fb5654fe2025276c55e202d10b5255 (patch)
tree573d8153c5d5216b0c4007b652286eeddd3c0987 /include/linux/sched.h
parent[PATCH] switch audit_get_loginuid() to task_struct * (diff)
downloadkernel-qcow2-linux-bfef93a5d1fb5654fe2025276c55e202d10b5255.tar.gz
kernel-qcow2-linux-bfef93a5d1fb5654fe2025276c55e202d10b5255.tar.xz
kernel-qcow2-linux-bfef93a5d1fb5654fe2025276c55e202d10b5255.zip
[PATCH] get rid of loginuid races
Keeping loginuid in audit_context is racy and results in messier code. Taken to task_struct, out of the way of ->audit_context changes. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 6c333579d9da..5e2730389089 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1139,6 +1139,9 @@ struct task_struct {
void *security;
#endif
struct audit_context *audit_context;
+#ifdef CONFIG_AUDITSYSCALL
+ uid_t loginuid;
+#endif
seccomp_t seccomp;
/* Thread group tracking */