From owner-freebsd-current Wed Feb 27 8:39:24 2002 Delivered-To: freebsd-current@freebsd.org Received: from muse.sanewo.dyn.to (p8bbdad.tkyoac00.ap.so-net.ne.jp [210.139.189.173]) by hub.freebsd.org (Postfix) with ESMTP id 596D837B417 for ; Wed, 27 Feb 2002 08:39:19 -0800 (PST) Received: from muse.sanewo.dyn.to (sanewo@localhost [127.0.0.1]) by muse.sanewo.dyn.to (8.12.2/8.12.2) with ESMTP id g1RGdBBH075193; Thu, 28 Feb 2002 01:39:15 +0900 (JST) (envelope-from sanewo@muse.sanewo.dyn.to) Message-Id: <200202271639.g1RGdBBH075193@muse.sanewo.dyn.to> To: Seigo Tanimura Cc: current@freebsd.org Subject: Re: setpgrp(1, 1) does not FAIL References: <200202271041.g1RAf5Vh080359@rina.r.dl.itc.u-tokyo.ac.jp> Cc: Takanori Saneto From: Takanori Saneto In-Reply-To: <200202271041.g1RAf5Vh080359@rina.r.dl.itc.u-tokyo.ac.jp> (Seigo Tanimura's message of "Wed, 27 Feb 2002 19:41:04 +0900") MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=ISO-2022-JP User-Agent: T-gnus/6.15.5 (based on Oort Gnus v0.05) (revision 01) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.5 (beta4) (bamboo) (i386-unknown-freebsd5.0) Date: Thu, 28 Feb 2002 01:39:11 +0900 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 <200202271041.g1RAf5Vh080359@rina.r.dl.itc.u-tokyo.ac.jp>, Seigo Tanimura wrote: >On Wed, 27 Feb 2002 15:44:23 +0900, > HIROSHI OOTA 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! -- さねを (SANETO Takanori) // [趣味] 本業をすること // ・・・・・・・・・・・・・・・・・ // Bonjour Chapeau // // [本業] 趣味に走ること // To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message