diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-03-14 00:02:19 +0100 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-09-18 10:01:34 +0200 |
commit | d20b92ab668cc44fc84bba0001839c5a8013a5cd (patch) | |
tree | 6a9f99ed0aa7563fcc990f9ec36ae2704672a961 /kernel/trace/trace.h | |
parent | userns: Convert bsd process accounting to use kuid and kgid where appropriate (diff) | |
download | linux-d20b92ab668cc44fc84bba0001839c5a8013a5cd.tar.xz linux-d20b92ab668cc44fc84bba0001839c5a8013a5cd.zip |
userns: Teach trace to use from_kuid
- When tracing capture the kuid.
- When displaying the data to user space convert the kuid into the
user namespace of the process that opened the report file.
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 55e1f7f0db12..40a6f30c985f 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -147,7 +147,7 @@ struct trace_array_cpu { unsigned long skipped_entries; cycle_t preempt_timestamp; pid_t pid; - uid_t uid; + kuid_t uid; char comm[TASK_COMM_LEN]; }; |