freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

安全協(xié)議與標(biāo)準(zhǔn)07a-linux安全(內(nèi)核)(編輯修改稿)

2025-01-27 18:56 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 Γ В ? single mode ?在 /?/ … restricted password=a3xsf8d … ? lilo口令的作用過(guò)程 ?查 lilo的源程序 ? , , Γ В ? Grub的口令機(jī)制 ? /boot/grub/ password md5 PASSWD ?則必須先輸入口令才能迚一步操作 grub ?或者單獨(dú)針對(duì)某項(xiàng)啟用口令 password PASSWD /boot/grub/menu ?還有 lock選項(xiàng)可用 ?為了產(chǎn)生 md5后的 PASSWD grubmd5crypt Γ В ?Kernel image被 lilo/grub(曾經(jīng) linux有自己的 bootsect)讀入到內(nèi)存,解壓縮,重定位,跳轉(zhuǎn)到 ? ?Kernel從 start_kernel()被執(zhí)行 ? ? Kernel做了重要的初始化,然后 Kernel創(chuàng)建1號(hào)內(nèi)核線程 init,其裝載 /sbin/init(配置文件是 /etc/inittab)。 Γ В ? Kernel然后啟動(dòng)用戶迚程 init start_kernel()。 └ ─ rest_init()。 └ ─ kernel_thread(init, NULL, CLONE_KERNEL)。 = init() └ ─ run_init_process(/sbin/init)。 └ ─ execve(init_filename, argv_init, envp_init)。 ? init讀取配置文件 inittab ? /etc/inittab中的幾行: … Run gettys in standard runlevels 1:2345:respawn:/sbin/mingetty tty1 2:2345:respawn:/sbin/mingetty tty2 3:2345:respawn:/sbin/mingetty tty3 … Γ В ? Γ В ?查 mingetty的來(lái)歷 ? rpm qf /sbin/mingetty ? Google(“mingetty”) ? Debian software package directories ?下載 ?得到唯一的 Γ В ? in do_prompt()。// show login prompt, optionally preceded by /etc/issue contents open_tty ()。 // set up tty as standard { input, output, error } while ((logname = get_logname ()) == 0)。 execl (_PATH_LOGIN, _PATH_LOGIN, , logname, NULL)。 ?說(shuō)明:從指定的 tty獲得用戶名,并啟動(dòng) login程序 Γ В ?/dev/tty0 ?/dev/pts/0 ?tty_init ? vty_init ? kbd_init 2419 static struct cdev tty_cdev, console_cdev。 2420 ifdef CONFIG_UNIX98_PTYS 2421 static struct cdev ptmx_cdev。 2422 endif 2423 ifdef CONFIG_VT 2424 static struct cdev vc0_cdev。 2425 endif Γ В ? in … retcode = pam_get_item(pamh, PAM_USER, (const void **) username)。 … pp = getpass(_(Password: ))。 p = crypt(pp, salt)。 // 加密口令得到密文 memset(pp, 0, strlen(pp))。 if (pwd !strcmp(p, pwdpw_passwd)) // 密文匹配 break。 … ?用戶可以有幾次機(jī)會(huì)輸入口令 ?但是會(huì)有故意的延遲 ?數(shù)次失敗,則退出 ? init會(huì)把 mingetty再次起動(dòng) Γ В ? … ? childPid = fork()。 ? if (childPid) { ? wait(NULL)。 // login迚程等著 ? exit(0)。 ? } // 下面是子迚程(用戶的 shell) ? setsid()。 ? opentty(ttyn)。 ? setuid(pwdpw_uid)。 ?
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1