public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: ebiederm@xmission.com (Eric W. Biederman)
To: "H. Peter Anvin" <hpa@zytor.com>
Cc: Russell King <rmk@arm.linux.org.uk>,
	Linus Torvalds <torvalds@transmeta.com>,
	Roman Zippel <zippel@linux-m68k.org>, Greg KH <greg@kroah.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [BK PATCH] klibc for 2.5.64 - try 2
Date: 08 Mar 2003 19:25:13 -0700	[thread overview]
Message-ID: <m1isutjmye.fsf@frodo.biederman.org> (raw)
In-Reply-To: <3E6A5BC2.6040808@zytor.com>

"H. Peter Anvin" <hpa@zytor.com> writes:

> Eric W. Biederman wrote:
> > I don't recall anything about the contents of initramfs being specified.
> > What I was expecting to see was a good set of general purpose policies
> > being included in the default kernel binary.  And just replacing
> > /sbin/kinit if I wanted something dramatically different.  And that is
> > what I remember Al Viro working on.
> > So I don't think building a very specific /sbin/kinit that
> > only does what the kernel currently does right now is a problem.
> >
> 
> It does matter how the initramfs is built.  /bin/sh may or may not be necessary
> (but klibc /bin/sh is just over 50K on i386 -- 55K static, whereas glibcx
> /bin/bash is 600K plus the glibc binary), but one of the goals with initramfs is
> 
> to at least make it feasible to give someone who comes and asks "I have a
> weird-ass site with 20000 hosts and we need X" a better answer then "well, go
> hack the kernel."

I agree the size of glibc 1.1M and /bin/bash 600K are substantial.
And in most cases if I had to drop one it would be /bin/bash.  But 2M
is not that bad if you already need 14M for your modules.   

There are still cases where you need to fit through a very narrow pipe
like a floppy, and for those any extra size is a show stopper.  But I
also don't see needing a lot of flexibility after coming through a
very narrow pipe.

> /sbin/kinit is a feasible way to do it, but it's important to keep the
> flexibility option open.

I agree, flexibility is important.  

My basic point was it sounds like the development process is backwards.
It feels like we are starting big and then going small, instead of the
other way around.  

And if starting big keeps the code from being incorporated into
the kernel, I'm not in favor of it.  I am in favor of any code that
works.

How I have always expected to use this code is to either use
what is provided in the kernel or replace it entirely.

> > So I think we should have a very small very specific /sbin/kinit
> > that does in user space what the kernel does in kernel space right
> > now.  Regardless of klibc the default /sbin/kinit should be gpl'd
> > because we are moving code from code from the kernel into it, and we
> > shouldn't need to double check the licenses to move code from the
> > kernel into it.
> 
> Agreed (although it's harder than you think to move code from the kernel into it
> 
> -- frequently it has been easier to just write code from scratch; it's cleaner
> that way, too.)

I am not surprised.  In kernel and out of the kernel the APIs are noticeably
different.  

There are some things like table parsers that I expect would remain unchanged
moving from kernel to user space.  Using the information would be quite
different but the same data structures could be used to represent it.

The important thing is when people have an itch to move code they can glance
at it and not have to worry about the license.  If something looks hard
at first glance it might not happen.  If it looks easy it more likely to happen
even if it is hard :)
 
> The reason I wanted to use BSD/MIT license only really applies to the library.

Quite reasonable, and I have no problem with BSD/MIT for just the
library as long as it has a  GPL compatible license.

Eric


  reply	other threads:[~2003-03-09  2:15 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-07  0:16 [BK PATCH] klibc for 2.5.64 - try 2 Greg KH
2003-03-07  1:02 ` Roman Zippel
2003-03-07  1:05   ` H. Peter Anvin
2003-03-07  1:23     ` Roman Zippel
2003-03-07  1:35       ` H. Peter Anvin
2003-03-07  9:55         ` Roman Zippel
2003-03-07 13:43           ` H. Peter Anvin
2003-03-07 15:33             ` Kai Germaschewski
2003-03-07 19:42               ` H. Peter Anvin
2003-03-07 18:37             ` Roman Zippel
2003-03-07 18:52               ` Linus Torvalds
2003-03-07 21:55                 ` Roman Zippel
2003-03-07 23:05                   ` Linus Torvalds
2003-03-07 23:36                     ` Greg KH
2003-03-07 23:53                       ` Linus Torvalds
2003-03-07 23:55                         ` Greg KH
2003-03-08  0:47                           ` Linus Torvalds
2003-03-08  0:54                             ` Greg KH
2003-03-07 23:39                     ` Russell King
2003-03-07 23:44                       ` H. Peter Anvin
2003-03-08  0:00                         ` Russell King
2003-03-08  0:38                         ` Roman Zippel
2003-03-08  0:46                           ` H. Peter Anvin
2003-03-08  1:27                             ` Roman Zippel
2003-03-12 17:27                               ` Pavel Machek
2003-03-13  0:22                                 ` H. Peter Anvin
2003-03-08  0:46                           ` David Lang
2003-03-08  1:49                             ` Roman Zippel
2003-03-08  2:00                               ` David Lang
2003-03-08  2:26                                 ` Roman Zippel
2003-03-08 16:55                                 ` Roman Zippel
2003-03-08 17:06                                   ` Vlad@geekizoid.com
2003-03-08  2:06                       ` Eric W. Biederman
     [not found]                         ` <20030308100359.A27153@flint.arm.linux.org.uk>
2003-03-08 15:50                           ` Eric W. Biederman
2003-03-08 16:13                             ` Russell King
2003-03-08 17:28                               ` Eric W. Biederman
2003-03-08 21:08                                 ` H. Peter Anvin
2003-03-09  2:25                                   ` Eric W. Biederman [this message]
2003-03-09  2:30                                     ` Larry McVoy
2003-03-09 11:32                                 ` Daniel Egger
2003-03-09 11:46                                   ` Eric W. Biederman
2003-03-09 14:19                                     ` Daniel Egger
2003-03-10  0:49                                       ` H. Peter Anvin
2003-03-10  1:40                                         ` Daniel Egger
2003-03-10  6:01                                       ` Eric W. Biederman
2003-03-10 20:33                                       ` Hans-Peter Jansen
2003-03-10 22:02                                         ` Daniel Egger
2003-03-08 20:52                             ` H. Peter Anvin
2003-03-08 21:10                             ` H. Peter Anvin
2003-03-09  1:29                               ` Eric W. Biederman
2003-03-09  1:46                                 ` H. Peter Anvin
2003-03-09  2:37                                   ` Eric W. Biederman
  -- strict thread matches above, loose matches on Subject: below --
2003-03-07 19:21 Matthew Wilcox
2003-03-07 21:04 ` Alan Cox
     [not found] <1047106664.22024.0.camel@rth.ninka.net>
2003-03-08 15:54 ` Linus Torvalds
2003-03-08 16:03   ` David S. Miller
2003-03-08 16:35     ` Linus Torvalds
2003-03-08 16:22       ` David S. Miller
2003-03-08 17:07       ` Larry McVoy
2003-03-08 20:22         ` Linus Torvalds
2003-03-08 21:02         ` H. Peter Anvin
2003-03-08 20:56       ` H. Peter Anvin
2003-03-09  1:24       ` Roman Zippel

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=m1isutjmye.fsf@frodo.biederman.org \
    --to=ebiederm@xmission.com \
    --cc=greg@kroah.com \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    --cc=torvalds@transmeta.com \
    --cc=zippel@linux-m68k.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