From owner-freebsd-hackers Fri Feb 28 16:47:53 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 5896237B401 for ; Fri, 28 Feb 2003 16:47:51 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 861FA43FBF for ; Fri, 28 Feb 2003 16:47:50 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id h210lgJu023260; Fri, 28 Feb 2003 16:47:42 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id h210lghq023253; Fri, 28 Feb 2003 16:47:42 -0800 Date: Fri, 28 Feb 2003 16:47:42 -0800 From: Brooks Davis To: Luoqi Chen Cc: Matthew Seaman , freebsd-hackers@FreeBSD.ORG Subject: Re: kern/40611 linux compatibility fix Message-ID: <20030228164741.A21344@Odin.AC.HMC.Edu> References: <20030228134245.GF23502@happy-idiot-talk.infracaninophi> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from lchen@briontech.com on Fri, Feb 28, 2003 at 11:47:42AM -0800 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu 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 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 28, 2003 at 11:47:42AM -0800, Luoqi Chen wrote: > > Dear Hackers, > >=20 > > 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 > >=20 > 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) =20 -int p31b_proc __P((struct proc *, pid_t, struct proc **)); - void p31b_setcfg __P((int, int)); =20 #ifdef _KPOSIX_PRIORITY_SCHEDULING --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --9amGYk9869ThD9tj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+YAMsXY6L6fI4GtQRAkX/AJ0YQqYlqYuTqb20UhADy+egZwKPLACffMSA LzQNkhls87mNXg7byvPnkDE= =8uYV -----END PGP SIGNATURE----- --9amGYk9869ThD9tj-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message