]> git.openpandora.org Git - openembedded.git/commitdiff
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 5a60d52a9a5cbe8e808820ed49927b047433b1b2..0940b592f211dc9ed0c0005dbcc11f41fd7bb4fe 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 cc25c026a3b6a6fab1486d38559b298a73c8f02d..0d61d657aab294c4c4f37123bde0563663435e6f 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 cc25c026a3b6a6fab1486d38559b298a73c8f02d..0d61d657aab294c4c4f37123bde0563663435e6f 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 f21be9c8c55ee1f84f27e2354f5bd81e1e4a969f..3f1da7c3ae7971ca1823a36372279b1eb639f177 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 2af5556dbd04bab5d8b35926a4807f601641c020..9ed070141828e349b1ebb8cb924be80ed1de183a 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 bef4cb7301e56e9f6b046e88f91e163f12e838a1..cebd4941168a8a45f4139c1a62b35cee2daa9aa0 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 \