1 |
no, the rcscripts must now parse the kernel commandline opts |
2 |
to get a few options. There's really not many other ways to |
3 |
do it. Besides you just proved by your statement that someone |
4 |
could instead pass init=/bin/sh and override any sort of |
5 |
init process, so trying to make the 'cdroot' option secure |
6 |
is obsurd, as there's 10 million other ways to get in if you |
7 |
have direct access to the computer. |
8 |
|
9 |
-Brad |
10 |
|
11 |
> I think what paul means is that when a bootloader isn't password |
12 |
> protected, a malign user could pass 'cdroot' to the kernel and exploit |
13 |
> some of the things this triggers in the rc scripts (autologin?) if |
14 |
> those scripts directly parse the arguments passed to the kernel. |
15 |
> |
16 |
> The style of exploit is quite similar to passing: |
17 |
> |
18 |
> init=/home/hacker/exploit.sh or init=/bin/sh |
19 |
> |
20 |
> to the kernel on a system one has direct access to and whose bootloader |
21 |
> isn't pass-protected. This issue is relevant for computers from |
22 |
> computer rooms used for teaching/exams... |
23 |
> |
24 |
> But if I'm not mistaken the rc-scripts themselves do not 'parse kernel |
25 |
> output', it's the linuxrc which parses the kernel arguments , and |
26 |
> exports cdboot to the env, right? So there should be no security issues |
27 |
> for systems which don't have an initrd and thus no linuxrc. |
28 |
> |
29 |
> Pieter |
30 |
> |
31 |
> On 17 Jan 2004, at 17:28, Brad House wrote: |
32 |
> |
33 |
>> don't have a clue what you mean by this statement |
34 |
>> It is only applicable if you pass cdroot to your kernel. |
35 |
>> If you're using a genkernel compiled kernel, that will |
36 |
>> cause your system to not boot unless you're booting off a |
37 |
>> cd. And for advanced users who actually build their own |
38 |
>> kernel, I think they'd be brighter than to try to do autologin |
39 |
>> stuff by passing cdroot to the kernel. |
40 |
>> |
41 |
>> Sorry, linux is not idiot-proof. This is a NON-ISSUE. |
42 |
>> |
43 |
>> -Brad |
44 |
>> |
45 |
>> |
46 |
>>> Will there be a way to keep these of of hd installs. I don't think |
47 |
>>> that |
48 |
>>> this |
49 |
>>> kind of functionality is good on hd installs. It makes it too easy to |
50 |
>>> create |
51 |
>>> an insecure system |
52 |
>> |
53 |
>> |
54 |
>> -- |
55 |
>> gentoo-releng@g.o mailing list |
56 |
>> |
57 |
> |
58 |
> |
59 |
> -- |
60 |
> gentoo-releng@g.o mailing list |
61 |
> |
62 |
> |
63 |
> |
64 |
|
65 |
|
66 |
-- |
67 |
gentoo-releng@g.o mailing list |