summaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-07-01 16:06:15 -0500
committerWilliam Hubbs <williamh@gentoo.org>2012-07-01 16:06:15 -0500
commit1ad426d24f94706e8578a5a0f0d0457405abc06c (patch)
tree50ca03953eded36875a34216eeb9ad00c6e45356 /init.d
parentDrop the write_root_link_rule helper (diff)
downloadudev-gentoo-scripts-1ad426d24f94706e8578a5a0f0d0457405abc06c.tar.gz
udev-gentoo-scripts-1ad426d24f94706e8578a5a0f0d0457405abc06c.tar.bz2
udev-gentoo-scripts-1ad426d24f94706e8578a5a0f0d0457405abc06c.zip
udev-mount: remove selinux code
I was advised that this code is no longer needed since this issue is being controlled by the selinux policy. Thanks to Sven Vermeulen.
Diffstat (limited to 'init.d')
-rw-r--r--init.d/udev-mount10
1 files changed, 0 insertions, 10 deletions
diff --git a/init.d/udev-mount b/init.d/udev-mount
index ab58c3d..fa3afb3 100644
--- a/init.d/udev-mount
+++ b/init.d/udev-mount
@@ -62,14 +62,12 @@ seed_dev()
# udevd will dup its stdin/stdout/stderr to /dev/null
# and we do not want a file which gets buffered in ram
[ -c /dev/null ] || mknod -m 666 /dev/null c 1 3
- ${HAVE_SELINUX} && restorecon /dev/null
# so udev can add its start-message to dmesg
[ -c /dev/kmsg ] || mknod -m 660 /dev/kmsg c 1 11
# Create problematic directories
mkdir -p /dev/pts /dev/shm
- ${HAVE_SELINUX} && restorecon -R /dev >/dev/null
return 0
}
@@ -77,14 +75,6 @@ start()
{
mount_dev_directory || return 1
- # Selinux lovin; /selinux should be mounted by selinux-patched init
- if [ -x /sbin/restorecon -a -c /selinux/null ]; then
- HAVE_SELINUX=true
- restorecon /dev > /selinux/null
- else
- HAVE_SELINUX=false
- fi
-
seed_dev
return 0
}