Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Cc: Dale <rdalek1967@×××××.com>
Subject: Re: [gentoo-user] Re: sudo in kernel config ?
Date: Sat, 11 Sep 2010 23:17:58
Message-Id: 201009120117.22392.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] Re: sudo in kernel config ? by Dale
1 Apparently, though unproven, at 23:47 on Saturday 11 September 2010, Dale did
2 opine thusly:
3
4
5 > >> My point was, if the sources are say in the user group, then any user
6 > >> can edit them? Right now, they are in the root group and owned my root
7 > >> which for security reasons is a good idea. That way a regular user can't
8 > >> edit or modify the kernel sources.
9 > >
10 > > The group can only write if the files have the group write permission
11 > > set. Still in Unix 101 domain, hehe :)
12 >
13 > I know that. Why would a person want anyone BUT root to be able to
14 > access and change the kernel sources? Lets see if asking it this way
15 > makes more sense. lol
16
17
18 Gentoo does things different. If you read Documentation/* in the kernel
19 sources, you will not find there what Gentoo has.
20
21 /usr/src/linux was intended by the kernel devs[1] to be where the system
22 headers are stored - what glibc uses to build. Like everything else in /usr/
23 this is obviously writeable for root only (usually).
24
25 The intent is that you download kernel sources to ~, build there and sudo make
26 install.
27
28 Gentoo needs a kernel tree (not just headers) for all manner of stuff to build
29 against. These days many distros also do it this way to accommodate the needs
30 of getting nvidia-drivers and vm products to build their drivers etc. This
31 must obviously also be writeable only for root.
32
33 So, the ancient "advice" about not building as root is bullshit. It might have
34 been good advice once but like all advice it's time is past.
35
36 To answer your question:
37
38 "You wouldn't. Anything else is just daft."
39
40
41 [1] this itself might be ancient cruft and hopelessly out of date
42
43 --
44 alan dot mckinnon at gmail dot com