]> git.baikalelectronics.ru Git - kernel.git/commit
setpgid(child) fails if the child was forked by sub-thread
authorOleg Nesterov <oleg@tv-sign.ru>
Fri, 31 Aug 2007 06:56:27 +0000 (23:56 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 31 Aug 2007 08:42:22 +0000 (01:42 -0700)
commitf2891da177e6c577bcccab0b4b67dc1659c86945
tree0d6178552b4232fa4ea7c3d49aa4710873babc11
parent06390dc08caed11f8080e501f6c0dfda426631fa
setpgid(child) fails if the child was forked by sub-thread

Spotted by Marcin Kowalczyk <qrczak@knm.org.pl>.

sys_setpgid(child) fails if the child was forked by sub-thread.

Fix the "is it our child" check. The previous commit
feb1588015336dafeee045a7dc75d422056f6aba was not complete.

(this patch asks for the new same_thread_group() helper, but mainline doesn't
 have it yet).

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Acked-by: Roland McGrath <roland@redhat.com>
Cc: <stable@kernel.org>
Tested-by: "Marcin 'Qrczak' Kowalczyk" <qrczak@knm.org.pl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sys.c