Gentoo Archives: gentoo-hardened

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

Replies

Subject Author
Re: [gentoo-hardened] selinux & udev antoine <antoine@××××××××××.uk>