*BSD News Article 6832


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!mcsun!sunic!kth.se!lysator.liu.se!pen
From: pen@lysator.liu.se (Peter Eriksson)
Subject: Re: 4.3BSD (all variants!) question about <sys/proc.h> and p_ruid
Message-ID: <1845@lysator.liu.se>
Sender: news@lysator.liu.se
Nntp-Posting-Host: robert.lysator.liu.se
Organization: Lysator Academic Computer Society, Linkoping University, Sweden
References: <1842@lysator.liu.se> <1992Oct20.195600.2703@fcom.cc.utah.edu>
Date: Tue, 20 Oct 1992 23:56:07 GMT
Lines: 34

terry@cs.weber.edu (A Wizard of Earth C) writes:

>In article <1842@lysator.liu.se> pen@lysator.liu.se (Peter Eriksson) writes:
>>Do all versions of 4.3BSD (and later versions) contain a "p_ruid" member
>>in the 'struct proc' structure? Is it in 386BSD? In BSD/386?

>386BSD has it; every system that makes a distinction between SUID programs
>and programs run by a particular UID has it.  In SVR4, it's u_ruid.

Great.

>>Is it only 386BSD that has the kvm_*() routines or is that part in
>>4.4BSD as well? And in BSD/386?

>Uh ...you lost me here -- you mean kern_malloc.c?

No, I _think_ the kvm_*() routines are part of libc.a in 386BSD or something..
(They are used as cover routines when one has a daemon that reads structures
in /dev/kmem, /dev/mem, using nlist information from /vmunix)

>Try:

>	cd /sys
>	find . -name \*.c -exec grep \^kvm_ {} \; -print

>I don't think it'll show anything for you either.

Umm.. I would if I only had access to a 386BSD system to do it on...

/Peter
--
Peter Eriksson                                              pen@lysator.liu.se
Lysator Academic Computer Society                 ...!uunet!lysator.liu.se!pen
University of Linkoping, Sweden                I'm still bored. Flame me again.