aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-02-08 07:19:21 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 12:22:29 -0500
commit56496c1d83dfae0c74e2f43adb45d2d95e16c0d5 (patch)
tree36cdf6421d0b26e8372dd1167a1ecd18f73fc3a5
parent6c5f3e7b43300508fe3947ff3cfff0f86043bb57 (diff)
Pidns: fix badly converted mqueues pid handling
When sending the pid namespaces patches I wrongly converted the tsk->tgid into task_pid_vnr(tsk) in mqueue-s (the git id of this patch is b488893a390edfe027bae7a46e9af8083e740668). The proper behavior is to get the task_tgid_vnr(tsk). This seem to be the only mistake of that kind. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Oleg Nesterov <oleg@tv-sign.ru> Cc: Balbir Singh <balbir@in.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--ipc/mqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 147d50238c7b..60f7a27f7a9e 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -509,7 +509,7 @@ static void __do_notify(struct mqueue_inode_info *info)
509 sig_i.si_errno = 0; 509 sig_i.si_errno = 0;
510 sig_i.si_code = SI_MESGQ; 510 sig_i.si_code = SI_MESGQ;
511 sig_i.si_value = info->notify.sigev_value; 511 sig_i.si_value = info->notify.sigev_value;
512 sig_i.si_pid = task_pid_vnr(current); 512 sig_i.si_pid = task_tgid_vnr(current);
513 sig_i.si_uid = current->uid; 513 sig_i.si_uid = current->uid;
514 514
515 kill_pid_info(info->notify.sigev_signo, 515 kill_pid_info(info->notify.sigev_signo,