### The Initial Context

An application invokes sec_login_setup_identity( ) so that it can then make other authenticated RPC calls. However, sec_login_setup_identity( ) is itself a local interface to an authenticated remote procedure call, and authenticated RPC needs a validated login context in order to execute. For applications like system login, the daemon dced supplies the validated context. However, a daemon that is started before dced is running on the host needs to be able to assume its host's identity. The initial context is established at boot time with sec_login_init_first( ), which establishes the default context inheritance for processes running on the host. The routines sec_login_setup_first( ) and sec_login_validate_first( ) then set up and validate the context in a procedure like that used for user context validation.

###