From owner-freebsd-hackers Tue Mar 4 6:49:48 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAE6A37B401 for ; Tue, 4 Mar 2003 06:49:46 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3690643FA3 for ; Tue, 4 Mar 2003 06:49:45 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) by smtp.infracaninophile.co.uk (8.12.8/8.12.8) with ESMTP id h24EnTDA015550; Tue, 4 Mar 2003 14:49:29 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.8/8.12.8/Submit) id h24EnTZ2015549; Tue, 4 Mar 2003 14:49:29 GMT Date: Tue, 4 Mar 2003 14:49:29 +0000 From: Matthew Seaman To: Brooks Davis Cc: Luoqi Chen , Matthew Seaman , freebsd-hackers@FreeBSD.ORG Subject: Re: kern/40611 linux compatibility fix Message-ID: <20030304144928.GC14952@happy-idiot-talk.infracaninophi> Mail-Followup-To: Brooks Davis , Luoqi Chen , Matthew Seaman , freebsd-hackers@FreeBSD.ORG References: <20030228134245.GF23502@happy-idiot-talk.infracaninophi> <20030228164741.A21344@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030228164741.A21344@Odin.AC.HMC.Edu> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-32.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Feb 28, 2003 at 04:47:42PM -0800, Brooks Davis wrote: > On Fri, Feb 28, 2003 at 11:47:42AM -0800, Luoqi Chen wrote: > > > Dear Hackers, > > > > > > Is there any chance that the patch given in kern/40611 could be > > > committed to the 4-STABLE tree? It has the desirable effect of making > > > eg. the linux-sun-jdk14 port usable as a non-root user. This would > > > appear to my untutored eye to be a sub-set of the differences already > > > existing between the HEAD and RELENG_4 versions of > > > src/sys/posix4/p1003_1b.c > > > > > I've a similar but more complete patch. It handles both get and set cases, > > and also takes into account jailed environment. It should have identical > > semantics to -current (except for the see_other_uids flag), at least at > > the time when I created the patch. You may inspect the patch at > > http://people.freebsd.org/~luoqi/p1003_1b.diff > > The following is also require for that one to compile. > > -- Brooks > > --- posix4.h 27 Dec 1999 10:22:09 -0000 1.6 > +++ posix4.h 1 Mar 2003 00:00:42 -0000 > @@ -61,8 +61,6 @@ MALLOC_DECLARE(M_P31B); > #define p31b_malloc(SIZE) malloc((SIZE), M_P31B, M_WAITOK) > #define p31b_free(P) free((P), M_P31B) > > -int p31b_proc __P((struct proc *, pid_t, struct proc **)); > - > void p31b_setcfg __P((int, int)); > > #ifdef _KPOSIX_PRIORITY_SCHEDULING > Seeing as I had to recompile anyhow because of the sendmail fun'n'games, I decided to give Books' and Luoqi's patches a spin. Happy to say, everything works fine and I have the linux-sun-jdk14 port running happily as non-root both in a jail and under the host environment using 4.8-RC as of yesterday. Is it too late to get these patches into 4.8-RELEASE ? Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message