Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Dec 2000 12:41:46 -0500 (EST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        John Baldwin <jhb@FreeBSD.org>
Cc:        smp@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys proc.h
Message-ID:  <Pine.NEB.3.96L.1001216123826.30174C-100000@fledge.watson.org>
In-Reply-To: <200012150010.eBF0AX468476@freefall.freebsd.org>

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

BTW, I don't know if you've had a chance to look at individual process
locking in kern_proc.c yet, but if so then the sysctl code to retrieve
process info will need some of the same work during kproc_info extraction
(protecting pcred, etc).  Also, p_can* will have to assume that the
process mutexes for p1 and p2 are both already held (so as to avoid
recursion issues), so callers of p_can (especially in procfs and
signalling code) will need to reflect that assumption.  We should grep
through for any direct references to p_cred throughout the tree, and where
possible eliminate them by improving authorization abstractions (if I
missed any inter-process calls), and where not, make sure they're properly
protected and documented (get/set-uid calls, sysctl, etc).

Robert N M Watson             FreeBSD Core Team, TrustedBSD Project
robert@fledge.watson.org      NAI Labs, Safeport Network Services



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1001216123826.30174C-100000>