Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Raymond Jennings
On Mon, 2013-07-15 at 17:53 -0700, Linus Torvalds wrote: > On Mon, Jul 15, 2013 at 5:46 PM, Raymond Jennings wrote: > > > > I'd like to point out that Google Chrome also makes use of CONFIG_ tests > > to detect support for namespaces and pid containers and stuff. > > Hmm. It must work fine

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Linus Torvalds
On Mon, Jul 15, 2013 at 5:46 PM, Raymond Jennings wrote: > > I'd like to point out that Google Chrome also makes use of CONFIG_ tests > to detect support for namespaces and pid containers and stuff. Hmm. It must work fine despite that. Because I run self-compiled kernels and there are no config

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Raymond Jennings
On Mon, 2013-07-15 at 10:17 -0700, Linus Torvalds wrote: > On Mon, Jul 15, 2013 at 8:40 AM, Konrad Rzeszutek Wilk > wrote: > > > > I am hoping you can help me draw an understanding and a line in sand > > whether: > > a) Tools should not depend on /proc/config.gz to figure out whether > > a

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Paul Bolle
On Mon, 2013-07-15 at 15:03 -0400, Konrad Rzeszutek Wilk wrote: > On Mon, Jul 15, 2013 at 08:25:43PM +0200, Paul Bolle wrote: > > And you're now also taking Michael's patch, that triggered this > > discussion, aren't you? > > I believe there is a better way of doing this that I had enumerated >

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Konrad Rzeszutek Wilk
On Mon, Jul 15, 2013 at 08:25:43PM +0200, Paul Bolle wrote: > On Mon, 2013-07-15 at 14:02 -0400, Konrad Rzeszutek Wilk wrote: > > How about I make you proud and post a patch. See: > > > > http://article.gmane.org/gmane.comp.boot-loaders.grub.devel/20332 > > And you're now also taking Michael's

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Paul Bolle
On Mon, 2013-07-15 at 14:02 -0400, Konrad Rzeszutek Wilk wrote: > How about I make you proud and post a patch. See: > > http://article.gmane.org/gmane.comp.boot-loaders.grub.devel/20332 And you're now also taking Michael's patch, that triggered this discussion, aren't you? Paul Bolle -- To

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Konrad Rzeszutek Wilk
On Mon, Jul 15, 2013 at 10:46:17AM -0700, Linus Torvalds wrote: > On Mon, Jul 15, 2013 at 10:24 AM, Konrad Rzeszutek Wilk > wrote: > > > > If life was that simple.. This particular issue was with inhibiting certain > > config stanzas if certain features were not built in the kernel. Here is the >

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Linus Torvalds
On Mon, Jul 15, 2013 at 10:24 AM, Konrad Rzeszutek Wilk wrote: > > If life was that simple.. This particular issue was with inhibiting certain > config stanzas if certain features were not built in the kernel. Here is the > bug that started it: >

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Konrad Rzeszutek Wilk
On Mon, Jul 15, 2013 at 10:02:44AM -0700, Greg KH wrote: > On Mon, Jul 15, 2013 at 11:40:50AM -0400, Konrad Rzeszutek Wilk wrote: > > Hey Linus, > > > > I am hoping you can help me draw an understanding and a line in sand > > whether: > > a) Tools should not depend on /proc/config.gz to figure

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Linus Torvalds
On Mon, Jul 15, 2013 at 8:40 AM, Konrad Rzeszutek Wilk wrote: > > I am hoping you can help me draw an understanding and a line in sand whether: > a) Tools should not depend on /proc/config.gz to figure out whether > a kernel has some CONFIG_X=y feature. Well, /proc/config.gz is better than

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Greg KH
On Mon, Jul 15, 2013 at 11:40:50AM -0400, Konrad Rzeszutek Wilk wrote: > Hey Linus, > > I am hoping you can help me draw an understanding and a line in sand whether: > a) Tools should not depend on /proc/config.gz to figure out whether > a kernel has some CONFIG_X=y feature. > > b) If they

CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Konrad Rzeszutek Wilk
Hey Linus, I am hoping you can help me draw an understanding and a line in sand whether: a) Tools should not depend on /proc/config.gz to figure out whether a kernel has some CONFIG_X=y feature. b) If they are OK to do so, what do we do when certain CONFIG_X options get

CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Konrad Rzeszutek Wilk
Hey Linus, I am hoping you can help me draw an understanding and a line in sand whether: a) Tools should not depend on /proc/config.gz to figure out whether a kernel has some CONFIG_X=y feature. b) If they are OK to do so, what do we do when certain CONFIG_X options get

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Greg KH
On Mon, Jul 15, 2013 at 11:40:50AM -0400, Konrad Rzeszutek Wilk wrote: Hey Linus, I am hoping you can help me draw an understanding and a line in sand whether: a) Tools should not depend on /proc/config.gz to figure out whether a kernel has some CONFIG_X=y feature. b) If they are OK

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Linus Torvalds
On Mon, Jul 15, 2013 at 8:40 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: I am hoping you can help me draw an understanding and a line in sand whether: a) Tools should not depend on /proc/config.gz to figure out whether a kernel has some CONFIG_X=y feature. Well,

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Konrad Rzeszutek Wilk
On Mon, Jul 15, 2013 at 10:02:44AM -0700, Greg KH wrote: On Mon, Jul 15, 2013 at 11:40:50AM -0400, Konrad Rzeszutek Wilk wrote: Hey Linus, I am hoping you can help me draw an understanding and a line in sand whether: a) Tools should not depend on /proc/config.gz to figure out whether

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Linus Torvalds
On Mon, Jul 15, 2013 at 10:24 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: If life was that simple.. This particular issue was with inhibiting certain config stanzas if certain features were not built in the kernel. Here is the bug that started it:

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Konrad Rzeszutek Wilk
On Mon, Jul 15, 2013 at 10:46:17AM -0700, Linus Torvalds wrote: On Mon, Jul 15, 2013 at 10:24 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: If life was that simple.. This particular issue was with inhibiting certain config stanzas if certain features were not built in the kernel.

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Paul Bolle
On Mon, 2013-07-15 at 14:02 -0400, Konrad Rzeszutek Wilk wrote: How about I make you proud and post a patch. See: http://article.gmane.org/gmane.comp.boot-loaders.grub.devel/20332 And you're now also taking Michael's patch, that triggered this discussion, aren't you? Paul Bolle -- To

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Konrad Rzeszutek Wilk
On Mon, Jul 15, 2013 at 08:25:43PM +0200, Paul Bolle wrote: On Mon, 2013-07-15 at 14:02 -0400, Konrad Rzeszutek Wilk wrote: How about I make you proud and post a patch. See: http://article.gmane.org/gmane.comp.boot-loaders.grub.devel/20332 And you're now also taking Michael's patch,

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Paul Bolle
On Mon, 2013-07-15 at 15:03 -0400, Konrad Rzeszutek Wilk wrote: On Mon, Jul 15, 2013 at 08:25:43PM +0200, Paul Bolle wrote: And you're now also taking Michael's patch, that triggered this discussion, aren't you? I believe there is a better way of doing this that I had enumerated in the

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Raymond Jennings
On Mon, 2013-07-15 at 10:17 -0700, Linus Torvalds wrote: On Mon, Jul 15, 2013 at 8:40 AM, Konrad Rzeszutek Wilk konrad.w...@oracle.com wrote: I am hoping you can help me draw an understanding and a line in sand whether: a) Tools should not depend on /proc/config.gz to figure out

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Linus Torvalds
On Mon, Jul 15, 2013 at 5:46 PM, Raymond Jennings shent...@gmail.com wrote: I'd like to point out that Google Chrome also makes use of CONFIG_ tests to detect support for namespaces and pid containers and stuff. Hmm. It must work fine despite that. Because I run self-compiled kernels and there

Re: CONFIG_* used by user-space to figure out whether a feature is on/off

2013-07-15 Thread Raymond Jennings
On Mon, 2013-07-15 at 17:53 -0700, Linus Torvalds wrote: On Mon, Jul 15, 2013 at 5:46 PM, Raymond Jennings shent...@gmail.com wrote: I'd like to point out that Google Chrome also makes use of CONFIG_ tests to detect support for namespaces and pid containers and stuff. Hmm. It must work