Gentoo Archives: gentoo-hardened

From: shimi <shimi@×××××.net>
To: antoine <antoine@××××××××××.uk>
Cc: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] selinux & udev
Date: Wed, 08 Jun 2005 20:53:14
Message-Id: 1118264015.21860.34.camel@matrix.shimi.net
In Reply to: Re: [gentoo-hardened] selinux & udev by antoine
1 On Wed, 2005-06-08 at 21:48 +0100, antoine wrote:
2 > On Wed, 2005-06-08 at 23:31 +0300, shimi wrote:
3 > > On Wed, 2005-06-08 at 21:25 +0100, antoine wrote:
4 > > > Hi,
5 > > >
6 > > > I've got a system which I am migrating to use selinux, so I had to
7 > > > switch to udev. I followed all the instructions, rebooted, udevd is
8 > > > running but /dev is mounted as ramfs (which does not support labelling
9 > > > AFAIK) instead of tmpfs. I tried to find where it is being mounted, but
10 > > > that isn't very clear (not in fstab, not in /etc/rc). Is it part
11 > > > of /sbin/init now?
12 > > > How do I switch to tmpfs for /dev?
13 > > > (obviously, I rebuilt a kernel with devfs not mounted automatically -
14 > > > would devfs show up as ramfs anyway?)
15 > >
16 > > File /etc/conf.d/rc, around line 50:
17 > >
18 > > # Use this variable to control the /dev management behavior.
19 > > # auto - let the scripts figure out what's best at boot
20 > > # devfs - use devfs (requires sys-fs/devfsd)
21 > > # udev - use udev (requires sys-fs/udev)
22 > > # static - let the user manage /dev
23 > >
24 > > RC_DEVICES="static"
25 > Thanks! But I've got no such setting in /etc/conf.d/rc !
26 > Maybe I discarded it during an etc-update?
27 > I guess it is safe to add? Why would I want static?
28 >
29 > Since devfs is not running and udev is, it would seem that the system
30 > default is 'auto' and it chose udev, so I don't see how setting it is
31 > going to make a difference...?
32 >
33 > I forgot to mention:
34 > /etc/make.profile -> /usr/portage/profiles/selinux/2004.1/amd64
35
36 Well, I do, and I didn't create it. And etc-update works for files that
37 were already there and an updated created a new version. Go figure.
38 Perhaps I'm using different init tools (I had a problem with that... I
39 run the ~amd64 versions). I use the same profile you do.
40
41 Anyways, the file's header begins like that:
42 # $Header: /var/cvsroot/gentoo-src/rc-scripts/etc/conf.d/rc,v 1.20.2.7
43 2005/05/17 00:12:03 vapier Exp $
44
45 As for your question, if you want udev, then yes, you should put udev
46 there. Mine is set to static because I had problems with software-RAID
47 (udev not creating my rootfs, kernel fails to load init, etc, etc.). If
48 udev doesn't do problems to you (and you actually need it - and with a
49 server - do you really need it?) - you can use it :)
50
51 One more thing - I think you should try playing with gentoo=nodevfs in
52 the kernel options (or append= if you have LILO) - if you have it, it
53 could also disable udev. I recall something about that with all my
54 tryings...
55
56 Good Luck,
57 --
58 shimi <shimi@×××××.net>
59
60 --
61 gentoo-hardened@g.o mailing list

Replies

Subject Author
Re: [gentoo-hardened] selinux & udev antoine <antoine@××××××××××.uk>
Re: [gentoo-hardened] selinux & udev "Mickaël DILY" <mickael.dily@×××××××××××××.fr>