步骤 2
章节大纲
-
完成上述操作后,在以下条件下运行 myprog, 观察发生的情况。
-
将 myprog 设置为普通程序,并以普通用户运行。
-
将 myprog 设置为 Set-UID root 程序,并以普通用户运行。
-
将 myprog 设置为 Set-UID root 程序,在 root 账户中设置 LD_PRELOAD 环境变量后运行该程序。
-
将 myprog 设置为 Set-UID user1 程序(即拥有者为 user1,这是另一个用户账户),在 user2 账户 (非 root 用户)中设置 LD_PRELOAD 环境变量后运行该程序。
-