From owner-freebsd-bugs Mon Jul 15 12:10:16 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D69CC37B405 for ; Mon, 15 Jul 2002 12:10:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE8DE43E64 for ; Mon, 15 Jul 2002 12:10:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6FJA4JU095321 for ; Mon, 15 Jul 2002 12:10:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6FJA4ar095319; Mon, 15 Jul 2002 12:10:04 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EC5B37B400 for ; Mon, 15 Jul 2002 12:09:15 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1CA443E42 for ; Mon, 15 Jul 2002 12:09:14 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g6FJ9EOT072746 for ; Mon, 15 Jul 2002 12:09:14 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g6FJ9E6Q072745; Mon, 15 Jul 2002 12:09:14 -0700 (PDT) Message-Id: <200207151909.g6FJ9E6Q072745@www.freebsd.org> Date: Mon, 15 Jul 2002 12:09:14 -0700 (PDT) From: Shannon -jj Behrens To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/40611: [PATCH] linux JRE 1.4 under linux compatibility only runs as root (kernel patch) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 40611 >Category: kern >Synopsis: [PATCH] linux JRE 1.4 under linux compatibility only runs as root (kernel patch) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jul 15 12:10:04 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Shannon -jj Behrens >Release: FreeBSD STABLE >Organization: NTT MCL, INC. >Environment: FreeBSD udp.nttmcl.com 4.5-STABLE FreeBSD 4.5-STABLE #0: Tue Apr 23 18:14:15 PDT 2002 root@udp.nttmcl.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: Due to permissions checking in linux_sched_getscheduler, the linux JRE 1.4 will only run as root. Some users on the FreeBSD-java mailing list feel that the permissions checking in linux_sched_getscheduler are far too strict. Don Bowman has submitted the following patch. >How-To-Repeat: Install the port linux-sun-jdk14 on a system that does not have linux_base-6 installed (note, linux_base-6 is not susceptible to this problem). linux_base will be installed as a dependency. Now, try to run any of the Java binaries. All of them will throw a Java exception. >Fix: Here is the email from Don Bowman, including his patch. According to the following email, both sched_getscheduler and sched_getparam need to be patched, but the patch does indeed work. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message