提交 df69a60d 编写于 作者: M Matt Helsley 提交者: Linus Torvalds

[PATCH] process events connector: uid_t gid_t size issues

The uid_t and gid_t fields appear to present a 32/64-bit userspace/kernel
problem for some archs.

This patch addresses the problem by fixing the size to the largest size for
uid_t/gid_t used in the kernel.  This preserves the total size of the event
structure while ensuring that the layouts of the ID change event match in
32 and 64-bit kernels and applications.
Signed-off-by: NMatt Helsley <matthltc@us.ibm.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 12074a35
...@@ -86,12 +86,12 @@ struct proc_event { ...@@ -86,12 +86,12 @@ struct proc_event {
pid_t process_pid; pid_t process_pid;
pid_t process_tgid; pid_t process_tgid;
union { union {
uid_t ruid; /* current->uid */ __u32 ruid; /* task uid */
gid_t rgid; /* current->gid */ __u32 rgid; /* task gid */
} r; } r;
union { union {
uid_t euid; __u32 euid;
gid_t egid; __u32 egid;
} e; } e;
} id; } id;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册