lkml.org 
[lkml]   [2005]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] make uselib configurable (was Re: uselib() & 2.6.X?)
On Tue, Jan 11, 2005 at 06:32:18PM -0800, Barry K. Nathan wrote:
> On Tue, Jan 11, 2005 at 08:36:41PM -0200, Marcelo Tosatti wrote:
> > On Tue, Jan 11, 2005 at 05:18:16PM -0800, David Lang wrote:
> [snip]
> > > how about something like the embedded, experimental, and broken options.
> > > that way normal users can disable all of them at a stroke, people who need
> > > them can add them in.
>
> That is what I had in mind for the longer term. Now that I think about
> it, my current patch is probably a bad way to get from here to there --
> it adds a config option that would later *need* to be renamed and moved
> to a different category.
>
> (To be specific, the concept I have in mind is to have an option that
> disables the syscalls that are usually used only by libc5 and earlier.)

Out of curiosity do you have a list of such syscalls?

"usually" is the problem - you cannot be sure what syscalls unknown applications are using.

> > Thats just not an option - you would have zillions of config options.
>
> I don't see how it would be zillions, but it's possible there's
> something I'm not yet understanding.

I assumed David was talking about having every different feature as a config
option.

> > Moreover this is a system call, and the system call interface is one of the few
> > supposed to be stable. You shouldnt simply assume that "no one will ever use sys_uselib()" -
> > there might be programs out there who use it.
>
> And if you have programs that need it, you (or your vendor) can set the
> config option accordingly.

The possibility is that there might be unknown applications which use these "obsolete" system
calls.

Vendors who want to support older applications (most distributions) will have to enable all
these option(s), while users who do not need one or a few of them can disable accordingly
("specialized" applications).

One thing is that ordinary users are not supposed to know what system calls his applications
are going to use, most of these users will be running vendor shipped kernels anyway.

I personally dont like the idea of disabling "obsolete" system calls with config options,
but it is useful for specialized applications to save memory.

Are many users going to benefit from it?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.163 / U:0.588 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site