Messages in this thread | | | Subject | Re: PROPOSAL: /proc/dev | From | Robert Bihlmeyer <> | Date | 04 Jan 1998 11:06:29 +0100 |
| |
Hi,
>>>>> On Fri, 2 Jan 1998 13:17:58 +1100 >>>>> Richard Gooch <rgooch@atnf.CSIRO.AU> said:
Richard> The system boot script checks it's /dev protections database Richard> and uses chown(2) and chmod(2) to modify permissions. If an Richard> entry does not exist, the script must first call mknod(2) Richard> which will create a "placeholder" entry.
This should be unnecessary, if ch{own,mod}() is made to create the placeholder. Might be easy to do (from what little I gleaned by staring at open.c & namei.c): Just make namei() succeed always for root, installing a placeholder if the real thing does not exist.
Robbe
-- Robert Bihlmeyer reads: Deutsch, English, MIME, Latin-1, NO SPAM! <robbe@orcus.priv.at> <http://stud2.tuwien.ac.at/~e9426626/sig.html>
| |