diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index f497bf56ada1..218937e837dc 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -1114,7 +1114,7 @@ asmlinkage long sys_setpgid(pid_t pid, pid_t pgid) | |||
1114 | if (!thread_group_leader(p)) | 1114 | if (!thread_group_leader(p)) |
1115 | goto out; | 1115 | goto out; |
1116 | 1116 | ||
1117 | if (p->parent == current || p->real_parent == group_leader) { | 1117 | if (p->real_parent == group_leader) { |
1118 | err = -EPERM; | 1118 | err = -EPERM; |
1119 | if (p->signal->session != group_leader->signal->session) | 1119 | if (p->signal->session != group_leader->signal->session) |
1120 | goto out; | 1120 | goto out; |