Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Sep 1998 09:43:53 -0400 (EDT)
From:      Brian Tao <taob@risc.org>
To:        Robert Watson <robert+freebsd@cyrus.watson.org>
Cc:        FREEBSD-CURRENT <freebsd-current@FreeBSD.ORG>
Subject:   Re: Limit 'ps' to show only user's processes
Message-ID:  <Pine.GSO.3.96.980924094103.16314b-100000@tor-dev1.nbc.netcom.ca>
In-Reply-To: <Pine.BSF.3.96.980918231631.13698A-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 18 Sep 1998, Robert Watson wrote:
> 
> I don't think there is any way to hide the existence of other
> processes -- a process that performs:
> 
> int i, lasti;
> while (1) {
> 	i = fork();
> 	if (!i) {
> 		exit(0);
> 	}
> 	if (i != lasti + 1) {
> 		
> ....

    On a slightly different track, using randomized pid's would limit
the usefulness of such a scan, although with a fast enough fork(), you
could still map the entire pid space and find the "holes".
-- 
Brian Tao (BT300, taob@risc.org)
"Though this be madness, yet there is method in't"


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.980924094103.16314b-100000>