Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2002 12:09:14 -0700 (PDT)
From:      Shannon -jj Behrens <jj@nttmcl.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/40611: [PATCH] linux JRE 1.4 under linux compatibility only runs as root (kernel patch)
Message-ID:  <200207151909.g6FJ9E6Q072745@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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 <don@sandvine.com> 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.

<http://docs.freebsd.org/cgi/getmsg.cgi?fetch=132728+0+archive/2002/freebsd-java/20020714.freebsd-java>;

According to the following email, both sched_getscheduler and sched_getparam need to be patched, but the patch does indeed work.

<http://docs.freebsd.org/cgi/getmsg.cgi?fetch=168075+0+archive/2002/freebsd-java/20020714.freebsd-java>;
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207151909.g6FJ9E6Q072745>