rc.sysinit creating device nodes
Matias Feliciano
feliciano.matias at free.fr
Sat Sep 25 17:14:52 UTC 2004
Le sam 25/09/2004 à 17:15, Russell Coker a écrit :
> echo mkdmnod | /sbin/nash
>
> rc.sysinit runs the above command to create /dev/mapper/control. Now that we
> have udev managing /dev we have no need to have nash do that.
>
> Is it time to remove that line from rc.sysinit? I ask because it requires
> undesirable access to be granted in the SE Linux policy.
>
>
> Also in rc.sysinit we have "echo raidautorun /dev/md0 | nash", but in that
> case /dev/md0 does not already exist. Can we change things such that udev
> creates /dev/md0?
>
Sorry for my poor English.
There is no more /etc/raidtab (raidtools package) in FC3.
in rc.sysinit :
update_boot_stage RCraid
if [ -f /etc/raidtab ]; then
(~85 lines)
fi
Bugzilla ?
"somewhere" at boot time, /dev/loop[0-7] are created even if loop module
is not loaded.
it's weird. Example here :
# grep loop /proc/modules (loop not loaded)
# grep loop /etc/modprobe.conf
options loop max-loop=32
# cd /dev
# ls loop* | wc -w
8
# modprobe loop
# ls loop* | wc -w
32
# rmmod loop
# ls loop* | wc -w
ls: loop*: No such file or directory
0
Bugzilla ?
As far as I understand udev, only udev can "touch" /dev.
The user "populate" /dev with modprobe or hotplug. This depends on his
hardware and need.
kudzu, do a part of that jobs.
I think it's time to provide a way to preload modules (ala Mandrake).
Perhaps /etc/sysconfig/preload_modules with :
loop
dm-mod
rtc
third-party driver unknown by kudzu
etc...
btw, I would like to know what append with /etc/security/console.perms .
I'll give you a "real" example :
I built a custom kernel (I have a binary-only module that don't like
CONFIG_REGPARM). As usual when i build a custom kernel, ide_cd is a
module.
grubby ....
reboot ....
I connect to the system and try "mount /mnt/cdrom" :
mount: only root can mount /dev/cdrom on /mnt/cdrom
Normal, ide_cd is not automagically loaded as with a static /dev. "su -l
-c 'modprobe ide_cd'" .
New try "mount /mnt/cdrom/" :
mount: only root can mount /dev/cdrom on /mnt/cdrom
Permissions and owner should be set according to
/etc/udev/permissions.d/ _and_ /etc/security/console.perms .
I know that hal/g-v-m can do the trick.
But what can do hal for rtc (use by mplayer) for example ?
This is my rtc part in console.perms :
<rtc>=/dev/rtc
<console> 0600 <rtc> 0600 root
With a static /dev this work even if the modules is not already loaded.
I am sure we will see other problems of that kind...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e.
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20040925/37819cae/attachment.sig>
More information about the fedora-devel-list
mailing list