Re: setpgrp(1, 1) does not FAIL

2002-02-28 Thread Seigo Tanimura
On Thu, 28 Feb 2002 22:14:56 +1100 (EST), Bruce Evans <[EMAIL PROTECTED]> said: Takanori> Can you look into PR kern/29844 as well? Takanori> I think after your fix, it should fail even when invoked by super Takanori> user. >> >> The superuser fails as well. bde> setpgrp() is the same as setpg

Re: setpgrp(1, 1) does not FAIL

2002-02-28 Thread Bruce Evans
On Thu, 28 Feb 2002, Seigo Tanimura wrote: > On Thu, 28 Feb 2002 01:39:11 +0900, > Takanori Saneto <[EMAIL PROTECTED]> said: > > Takanori> Can you look into PR kern/29844 as well? > Takanori> I think after your fix, it should fail even when invoked by super > Takanori> user. > > The superuser f

Re: setpgrp(1, 1) does not FAIL

2002-02-27 Thread Seigo Tanimura
On Thu, 28 Feb 2002 13:18:06 +0900, HIROSHI OOTA <[EMAIL PROTECTED]> said: oota> but, It should return EPERM instead of ESRCH. Because ESRCH oota> means `The requested process does not exist'. Setpgrp(2) should fail in this case because pid 1 (which is usually init(8)) is not a child of the c

Re: setpgrp(1, 1) does not FAIL

2002-02-27 Thread HIROSHI OOTA
thanks for your quick fixing. but, It should return EPERM instead of ESRCH. Because ESRCH means `The requested process does not exist'. thanks, -- HIROSHI OOTA [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] wit

Re: setpgrp(1, 1) does not FAIL

2002-02-27 Thread Seigo Tanimura
[Please write in us-ascii] On Thu, 28 Feb 2002 01:39:11 +0900, Takanori Saneto <[EMAIL PROTECTED]> said: Takanori> Can you look into PR kern/29844 as well? Takanori> I think after your fix, it should fail even when invoked by super Takanori> user. The superuser fails as well. Takanori> In a

Re: setpgrp(1, 1) does not FAIL

2002-02-27 Thread Takanori Saneto
Can you look into PR kern/29844 as well? I think after your fix, it should fail even when invoked by super user. Regards, In article <[EMAIL PROTECTED]>, Seigo Tanimura <[EMAIL PROTECTED]> wrote: >On Wed, 27 Feb 2002 15:44:23 +0900, > HIROSHI OOTA <[EMAIL PROTECTED]> said: oota> The fo

Re: setpgrp(1, 1) does not FAIL

2002-02-27 Thread Seigo Tanimura
On Wed, 27 Feb 2002 15:44:23 +0900, HIROSHI OOTA <[EMAIL PROTECTED]> said: oota> The following will succeed in non privilege user. oota> I think it should fail. oota> main() oota> { oota>printf("%d\n", setpgrp(1, 1)); oota> } Fixed in rev 1.138 of kern/kern_prot.c, thanks! -- Seigo Tani