Page 130 - slides.dvi
P. 130
•
•
•
•
•
•
•
Unix
3.
3.
2.
1.
1.
2.
3.
1.
2.
Case
init
Start
if
each
Root
login
Kernel
of
forks
Process
ok,
tty
Study—
opens
Patriarch
reads
1
outputs
outputs
an
then:
encrypts
initialises
sets
duplicates
execve()’s
file
init
Day
Processes
the
the
uid
process
file-system
the
terminal
(/vmunix)
&
string
password
/etc/tty
next:
gid,
resurrects
(/etc/init)
terminal
“password:”
special
and
loaded
resulting
/bin/login
mounted.
&
and
file
fd
/etc/inittab
process.
from
“login:”
checks
and
waits
(e.g.
&
/etc/tty
it
twice.
disk
for
for
hand-crafted.
on
execve()’s
waits
each
against
exit.
input
(how?)
for
shell.
/dev/tty0)
and
entry:
input
/etc/passwd.
execution
starts.
126