Bug#655175: initramfs-tools: /run/initramfs is user-writable
Package: initramfs-tools
Version: 0.99
Severity: important
% ls -ld /run/initramfs
drwsrwsrwt 2 root root 40 Jan 8 23:42 /run/initramfs
Is there any reason for this directory to be user-writable either
before or after the handover to /sbin/init? AFAIK all the code
run in the initramfs is as root, and no users really exist at this
point, making the need for a user to write to it moot. After the
When the system is booted and users can log in, there is nothing
to stop a user denial of service by filling up /run through the
creation of files in /run/initramfs. I can't think of any valid
reason to give a user write access to a filesystem only intended
to be writable by system processes.
I would suggest creating it with 0755 permissions for safety and
security.
Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages initramfs-tools depends on:
ii cpio 2.11-7
ii findutils 4.4.2-4
ii klibc-utils 1.5.25-1.1
ii module-init-tools 3.16-1
ii udev 175-3
Versions of packages initramfs-tools recommends:
ii busybox 1:1.19.3-5
Versions of packages initramfs-tools suggests:
ii bash-completion 1:1.3-1
-- no debconf information
--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20120108234610.7018.84953.reportbug@ravenclaw.code libre.net">http://lists.debian.org/20120108234610.7018.84953.reportbug@ravenclaw.code libre.net