From: Anton Blanchard <anton@samba.org>
To: torvalds@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] quieten initramfs and fix /dev permissions
Date: Wed, 10 Sep 2003 18:31:30 +1000 [thread overview]
Message-ID: <20030910083130.GF1532@krispykreme> (raw)
Dont print the contents of the initramfs, for any decent sized cpio it will
overflow the kernel ring buffer.
Also relax permissions on /dev (755 not 700).
work-anton/init/initramfs.c | 1 -
work-anton/usr/gen_init_cpio.c | 2 +-
diff -puN init/initramfs.c~initramfs_stuff init/initramfs.c
--- work/init/initramfs.c~initramfs_stuff 2003-09-06 22:58:23.000000000 -0500
+++ work-anton/init/initramfs.c 2003-09-10 03:04:31.000000000 -0500
@@ -248,7 +248,6 @@ static int __init do_name(void)
next_state = Reset;
return 0;
}
- printk(KERN_INFO "-> %s\n", collected);
if (S_ISREG(mode)) {
if (maybe_link() >= 0) {
wfd = sys_open(collected, O_WRONLY|O_CREAT, mode);
diff -puN usr/gen_init_cpio.c~initramfs_stuff usr/gen_init_cpio.c
--- work/usr/gen_init_cpio.c~initramfs_stuff 2003-09-06 22:58:23.000000000 -0500
+++ work-anton/usr/gen_init_cpio.c 2003-09-06 22:58:23.000000000 -0500
@@ -212,7 +212,7 @@ error:
int main (int argc, char *argv[])
{
- cpio_mkdir("/dev", 0700, 0, 0);
+ cpio_mkdir("/dev", 0755, 0, 0);
cpio_mknod("/dev/console", 0600, 0, 0, 'c', 5, 1);
cpio_mkdir("/root", 0700, 0, 0);
cpio_trailer();
reply other threads:[~2003-09-10 8:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030910083130.GF1532@krispykreme \
--to=anton@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome