From owner-cvs-all Wed Feb 27 7:43:47 2002 Delivered-To: cvs-all@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 505EF37B402; Wed, 27 Feb 2002 07:43:39 -0800 (PST) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.11.6/8.11.5) with SMTP id g1RFhWD47541; Wed, 27 Feb 2002 10:43:33 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Wed, 27 Feb 2002 10:43:32 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Robert Drehmel Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/compat/linux linux_misc.c In-Reply-To: <200202271506.g1RF6Y755216@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This change is not thread-safe in SMPng. Please take a look at linux_mib.c and kern_mib.c and adapt this functionality to make proper use of the jail synchronization primitives (pr->pr_mtx, et al). Right now, this is subject to races. Robert N M Watson FreeBSD Core Team, TrustedBSD Project robert@fledge.watson.org NAI Labs, Safeport Network Services On Wed, 27 Feb 2002, Robert Drehmel wrote: > robert 2002/02/27 07:06:33 PST > > Modified files: > sys/compat/linux linux_misc.c > Log: > Use the getcredhostname function to fill the hostname into > the linux_newuname_args structure. This should fix the case > of jailed linux processes not using the jail's hostname. > > PR: 35336 > Reviewed by: phk > > Revision Changes Path > 1.113 +3 -1 src/sys/compat/linux/linux_misc.c > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message