Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68911 - /sbin/rc use of ramfs prevents udev to work with selinux
Summary: /sbin/rc use of ramfs prevents udev to work with selinux
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-25 17:54 UTC by Bart Lauwers (RETIRED)
Modified: 2004-10-25 19:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Lauwers (RETIRED) gentoo-dev 2004-10-25 17:54:17 UTC
Trying to use udev fails on an SELinux system due to an inconsistency 
in /sbin/rc (or what could be called as such).

In line 187 ramfs is mounted on /dev, ramfs supports no security labels this breaks SELinux. (with sys-apps/baselayout-1.9.4-r6)

Is it possible to include a way to disable ramfs or detect selinux?

Some sample code to replace the block around /sbin/rc:180, using selinuxfs from /etc/fstab as check since noone should have that whos not running selinux 
selinux="$(awk '($3 == "selinuxfs") { print "yes"; exit 0 }' /etc/fstab)"
if [ "${selinux}" != "yes"]
then
 ebegin "Mounting ramfs at /dev"
 try mount -n -t ramfs none /dev
 eend $?
fi

Thanks, Bart

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 SpanKY gentoo-dev 2004-10-25 19:46:13 UTC
baselayout 1.11.3+ now mounts on tmpfs which (afaik) supports labels