udev: Cut down default /dev tmpfs size from 10Mb to 2Mb, to preclude DoS.
authorPaul Sokolovsky <pmiscml@gmail.com>
Mon, 18 Jun 2007 01:28:43 +0000 (01:28 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Mon, 18 Jun 2007 01:28:43 +0000 (01:28 +0000)
* Like ramdisk the stupid script spit tens of megabytes to a "device",
without checking if it exists.
* Generall, /dev should contains only devices, typical size - tens of Kb.

packages/udev/udev-092/init
packages/udev/udev-097/init
packages/udev/udev-100/init
packages/udev/udev_092.bb
packages/udev/udev_097.bb
packages/udev/udev_100.bb

index 5a60d52..0940b59 100644 (file)
@@ -119,7 +119,7 @@ PATH="/sbin:/bin:/usr/bin"
 [ -x /sbin/udevd ] || exit 0
 
 # defaults
-tmpfs_size="10M"
+tmpfs_size="2M"
 udev_root="/dev"
 udevd_timeout=30
 
index cc25c02..0d61d65 100644 (file)
@@ -131,7 +131,7 @@ warn_if_interactive() {
 PATH="/sbin:/bin:/usr/bin"
 
 # defaults
-tmpfs_size="10M"
+tmpfs_size="2M"
 udev_root="/dev"
 
 if [ -e /etc/udev/udev.conf ]; then
index cc25c02..0d61d65 100644 (file)
@@ -131,7 +131,7 @@ warn_if_interactive() {
 PATH="/sbin:/bin:/usr/bin"
 
 # defaults
-tmpfs_size="10M"
+tmpfs_size="2M"
 udev_root="/dev"
 
 if [ -e /etc/udev/udev.conf ]; then
index f21be9c..3f1da7c 100644 (file)
@@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod
 the hotplug package and requires a kernel not older than 2.6.12."
 RPROVIDES_${PN} = "hotplug"
 
-PR = "r17"
+PR = "r18"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
           file://noasmlinkage.patch;patch=1 \
index 2af5556..9ed0701 100644 (file)
@@ -8,7 +8,7 @@ used to detect the type of a file system and read its metadata."
 DESCRIPTION_libvolume-id-dev = "libvolume_id development headers, \
 needed to link programs with libvolume_id."
 
-PR = "r7"
+PR = "r8"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
           file://noasmlinkage.patch;patch=1 \
index bef4cb7..cebd494 100644 (file)
@@ -9,7 +9,7 @@ used to detect the type of a file system and read its metadata."
 DESCRIPTION_libvolume-id-dev = "libvolume_id development headers, \
 needed to link programs with libvolume_id."
 
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \
           file://noasmlinkage.patch;patch=1 \