* [2.6 patch] make UNIX a bool @ 2006-02-25 16:01 Adrian Bunk 2006-02-25 17:13 ` Stephen Hemminger 2006-02-25 22:46 ` Olaf Hering 0 siblings, 2 replies; 8+ messages in thread From: Adrian Bunk @ 2006-02-25 16:01 UTC (permalink / raw) To: Andrew Morton; +Cc: netdev, linux-kernel CONFIG_UNIX=m doesn't make much sense. Signed-off-by: Adrian Bunk <bunk@stusta.de> --- This patch was already sent on: - 20 Feb 2006 --- linux-2.6.16-rc4-mm1-full/net/unix/Kconfig.old 2006-02-20 14:40:19.000000000 +0100 +++ linux-2.6.16-rc4-mm1-full/net/unix/Kconfig 2006-02-20 14:40:27.000000000 +0100 @@ -3,7 +3,7 @@ # config UNIX - tristate "Unix domain sockets" + bool "Unix domain sockets" ---help--- If you say Y here, you will include support for Unix domain sockets; sockets are the standard Unix mechanism for establishing and ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [2.6 patch] make UNIX a bool 2006-02-25 16:01 [2.6 patch] make UNIX a bool Adrian Bunk @ 2006-02-25 17:13 ` Stephen Hemminger 2006-02-25 17:28 ` Arjan van de Ven 2006-02-26 18:19 ` Diego Calleja 2006-02-25 22:46 ` Olaf Hering 1 sibling, 2 replies; 8+ messages in thread From: Stephen Hemminger @ 2006-02-25 17:13 UTC (permalink / raw) To: Adrian Bunk; +Cc: Andrew Morton, netdev, linux-kernel Adrian Bunk wrote: > CONFIG_UNIX=m doesn't make much sense. > > > Signed-off-by: Adrian Bunk <bunk@stusta.de> > > > Why? You can build unix domain sockets as a loadable module and it runs fine (or it did last I tried). Whether that makes sense from a distribution point of view, because everybody wants it, is another story. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [2.6 patch] make UNIX a bool 2006-02-25 17:13 ` Stephen Hemminger @ 2006-02-25 17:28 ` Arjan van de Ven 2006-02-26 18:19 ` Diego Calleja 1 sibling, 0 replies; 8+ messages in thread From: Arjan van de Ven @ 2006-02-25 17:28 UTC (permalink / raw) To: Stephen Hemminger; +Cc: Adrian Bunk, Andrew Morton, netdev, linux-kernel On Sat, 2006-02-25 at 09:13 -0800, Stephen Hemminger wrote: > Adrian Bunk wrote: > > CONFIG_UNIX=m doesn't make much sense. > > > > > > Signed-off-by: Adrian Bunk <bunk@stusta.de> > > > > > > > Why? You can build unix domain sockets as a loadable module and > it runs fine (or it did last I tried). Whether that makes sense from a > distribution point of you didn't use to when modutils used unix sockets internally :) unix also needs a bunch of deeply internals exported that apparently people want to play with... ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [2.6 patch] make UNIX a bool 2006-02-25 17:13 ` Stephen Hemminger 2006-02-25 17:28 ` Arjan van de Ven @ 2006-02-26 18:19 ` Diego Calleja 1 sibling, 0 replies; 8+ messages in thread From: Diego Calleja @ 2006-02-26 18:19 UTC (permalink / raw) To: Stephen Hemminger; +Cc: bunk, akpm, netdev, linux-kernel El Sat, 25 Feb 2006 09:13:08 -0800, Stephen Hemminger <shemminger@osdl.org> escribió: > Why? You can build unix domain sockets as a loadable module and > it runs fine (or it did last I tried). Whether that makes sense from a I've been running with CONFIG_UNIX=m since the dawn of time and everything seems to work - not that I care if it's disabled, I just wanted to confirm that it works. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [2.6 patch] make UNIX a bool 2006-02-25 16:01 [2.6 patch] make UNIX a bool Adrian Bunk 2006-02-25 17:13 ` Stephen Hemminger @ 2006-02-25 22:46 ` Olaf Hering 2006-03-25 19:47 ` Adrian Bunk 1 sibling, 1 reply; 8+ messages in thread From: Olaf Hering @ 2006-02-25 22:46 UTC (permalink / raw) To: Adrian Bunk; +Cc: Andrew Morton, netdev, linux-kernel On Sat, Feb 25, Adrian Bunk wrote: > CONFIG_UNIX=m doesn't make much sense. There is likely more code to support a modular unix.ko, this has to go as well. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [2.6 patch] make UNIX a bool 2006-02-25 22:46 ` Olaf Hering @ 2006-03-25 19:47 ` Adrian Bunk 2006-03-26 15:20 ` Jan-Benedict Glaw 0 siblings, 1 reply; 8+ messages in thread From: Adrian Bunk @ 2006-03-25 19:47 UTC (permalink / raw) To: Olaf Hering; +Cc: Andrew Morton, netdev, linux-kernel On Sat, Feb 25, 2006 at 11:46:31PM +0100, Olaf Hering wrote: > On Sat, Feb 25, Adrian Bunk wrote: > > > CONFIG_UNIX=m doesn't make much sense. > > There is likely more code to support a modular unix.ko, this has to go > as well. Sounds resonable, updated patch below. cu Adrian <-- snip --> CONFIG_UNIX=m doesn't make that much sense and requires us to export things we don't want to export to modules. Signed-off-by: Adrian Bunk <bunk@stusta.de> --- fs/file_table.c | 1 - include/net/af_unix.h | 2 -- net/unix/Kconfig | 2 +- net/unix/af_unix.c | 18 ------------------ net/unix/sysctl_net_unix.c | 9 +-------- 5 files changed, 2 insertions(+), 30 deletions(-) --- linux-2.6.16-mm1-full/net/unix/Kconfig.old 2006-03-25 20:10:47.000000000 +0100 +++ linux-2.6.16-mm1-full/net/unix/Kconfig 2006-03-25 20:10:54.000000000 +0100 @@ -3,7 +3,7 @@ # config UNIX - tristate "Unix domain sockets" + bool "Unix domain sockets" ---help--- If you say Y here, you will include support for Unix domain sockets; sockets are the standard Unix mechanism for establishing and --- linux-2.6.16-mm1-full/include/net/af_unix.h.old 2006-03-25 20:13:33.000000000 +0100 +++ linux-2.6.16-mm1-full/include/net/af_unix.h 2006-03-25 20:13:40.000000000 +0100 @@ -85,10 +85,8 @@ #ifdef CONFIG_SYSCTL extern int sysctl_unix_max_dgram_qlen; extern void unix_sysctl_register(void); -extern void unix_sysctl_unregister(void); #else static inline void unix_sysctl_register(void) {} -static inline void unix_sysctl_unregister(void) {} #endif #endif #endif --- linux-2.6.16-mm1-full/net/unix/af_unix.c.old 2006-03-25 20:11:07.000000000 +0100 +++ linux-2.6.16-mm1-full/net/unix/af_unix.c 2006-03-25 20:14:05.000000000 +0100 @@ -475,7 +475,6 @@ static const struct proto_ops unix_stream_ops = { .family = PF_UNIX, - .owner = THIS_MODULE, .release = unix_release, .bind = unix_bind, .connect = unix_stream_connect, @@ -496,7 +495,6 @@ static const struct proto_ops unix_dgram_ops = { .family = PF_UNIX, - .owner = THIS_MODULE, .release = unix_release, .bind = unix_bind, .connect = unix_dgram_connect, @@ -517,7 +515,6 @@ static const struct proto_ops unix_seqpacket_ops = { .family = PF_UNIX, - .owner = THIS_MODULE, .release = unix_release, .bind = unix_bind, .connect = unix_stream_connect, @@ -538,7 +535,6 @@ static struct proto unix_proto = { .name = "UNIX", - .owner = THIS_MODULE, .obj_size = sizeof(struct unix_sock), }; @@ -2012,7 +2008,6 @@ } static struct file_operations unix_seq_fops = { - .owner = THIS_MODULE, .open = unix_seq_open, .read = seq_read, .llseek = seq_lseek, @@ -2024,7 +2019,6 @@ static struct net_proto_family unix_family_ops = { .family = PF_UNIX, .create = unix_create, - .owner = THIS_MODULE, }; static int __init af_unix_init(void) @@ -2053,16 +2047,4 @@ return rc; } -static void __exit af_unix_exit(void) -{ - sock_unregister(PF_UNIX); - unix_sysctl_unregister(); - proc_net_remove("unix"); - proto_unregister(&unix_proto); -} - module_init(af_unix_init); -module_exit(af_unix_exit); - -MODULE_LICENSE("GPL"); -MODULE_ALIAS_NETPROTO(PF_UNIX); --- linux-2.6.16-mm1-full/net/unix/sysctl_net_unix.c.old 2006-03-25 20:14:10.000000000 +0100 +++ linux-2.6.16-mm1-full/net/unix/sysctl_net_unix.c 2006-03-25 20:15:21.000000000 +0100 @@ -46,15 +46,8 @@ { .ctl_name = 0 } }; -static struct ctl_table_header * unix_sysctl_header; - void unix_sysctl_register(void) { - unix_sysctl_header = register_sysctl_table(unix_root_table, 0); -} - -void unix_sysctl_unregister(void) -{ - unregister_sysctl_table(unix_sysctl_header); + register_sysctl_table(unix_root_table, 0); } --- linux-2.6.16-mm1-full/fs/file_table.c.old 2006-03-25 20:39:30.000000000 +0100 +++ linux-2.6.16-mm1-full/fs/file_table.c 2006-03-25 20:39:44.000000000 +0100 @@ -62,7 +62,6 @@ { return files_stat.max_files; } -EXPORT_SYMBOL_GPL(get_max_files); /* * Handle nr_files sysctl ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [2.6 patch] make UNIX a bool 2006-03-25 19:47 ` Adrian Bunk @ 2006-03-26 15:20 ` Jan-Benedict Glaw 0 siblings, 0 replies; 8+ messages in thread From: Jan-Benedict Glaw @ 2006-03-26 15:20 UTC (permalink / raw) To: Adrian Bunk; +Cc: Olaf Hering, Andrew Morton, netdev, linux-kernel [-- Attachment #1: Type: text/plain, Size: 835 bytes --] On Sat, 2006-03-25 20:47:39 +0100, Adrian Bunk <bunk@stusta.de> wrote: > On Sat, Feb 25, 2006 at 11:46:31PM +0100, Olaf Hering wrote: > > On Sat, Feb 25, Adrian Bunk wrote: > > > CONFIG_UNIX=m doesn't make much sense. > > > > There is likely more code to support a modular unix.ko, this has to go > > as well. > > Sounds resonable, updated patch below. Thanks for the patch. I'll save it somewhere to have it handy for "patch -R" use IFF it makes its ways into Linus's repo. MfG, JBG -- Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg _ _ O für einen Freien Staat voll Freier Bürger" | im Internet! | im Irak! O O O ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA)); [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 189 bytes --] ^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <20060217154147.GL29846@in.ibm.com>]
[parent not found: <20060217154337.GM29846@in.ibm.com>]
[parent not found: <20060217154626.GN29846@in.ibm.com>]
[parent not found: <20060218010414.1f8d6782.akpm@osdl.org>]
[parent not found: <20060218092517.GP29846@in.ibm.com>]
* Re: [PATCH 2/2] fix file counting [not found] ` <20060218092517.GP29846@in.ibm.com> @ 2006-02-18 12:14 ` Christoph Hellwig 2006-02-18 12:31 ` Arjan van de Ven 0 siblings, 1 reply; 8+ messages in thread From: Christoph Hellwig @ 2006-02-18 12:14 UTC (permalink / raw) To: Dipankar Sarma; +Cc: Andrew Morton, linux-kernel, paulmck, dada1, davem, netdev > > - Make the get_max_files export use _GPL - only unix.ko uses it. The real question is, does af_unix really need to allow beeing built modular? It's quite different from other network protocol and deeply tied to the kernel due to things like descriptor passing or using the filesystem namespace. I already had to export another symbol that really should be internal just for it, and if one module acquires lots of such hacks it's usually a bad sign.. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] fix file counting 2006-02-18 12:14 ` [PATCH 2/2] fix file counting Christoph Hellwig @ 2006-02-18 12:31 ` Arjan van de Ven 2006-02-20 22:36 ` [2.6 patch] make UNIX a bool Adrian Bunk 0 siblings, 1 reply; 8+ messages in thread From: Arjan van de Ven @ 2006-02-18 12:31 UTC (permalink / raw) To: Christoph Hellwig Cc: Dipankar Sarma, Andrew Morton, linux-kernel, paulmck, dada1, davem, netdev On Sat, 2006-02-18 at 12:14 +0000, Christoph Hellwig wrote: > > > - Make the get_max_files export use _GPL - only unix.ko uses it. > > The real question is, does af_unix really need to allow beeing built > modular? It's quite different from other network protocol and deeply > tied to the kernel due to things like descriptor passing or using > the filesystem namespace. I already had to export another symbol that > really should be internal just for it, and if one module acquires lots > of such hacks it's usually a bad sign.. in 2.4 the answer would have been simple; modutils back then used AF_UNIX stuff before it could load modules, so modular was in practice impossible. Anyway I'd agree with making this non-modular... NOBODY will use this as a module, or if they do loading it somehow is the very first thing done. You just can't live without this, so making it a module is non-sensical. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [2.6 patch] make UNIX a bool 2006-02-18 12:31 ` Arjan van de Ven @ 2006-02-20 22:36 ` Adrian Bunk 0 siblings, 0 replies; 8+ messages in thread From: Adrian Bunk @ 2006-02-20 22:36 UTC (permalink / raw) To: Arjan van de Ven Cc: Christoph Hellwig, Dipankar Sarma, Andrew Morton, linux-kernel, paulmck, dada1, davem, netdev On Sat, Feb 18, 2006 at 01:31:30PM +0100, Arjan van de Ven wrote: > On Sat, 2006-02-18 at 12:14 +0000, Christoph Hellwig wrote: > > > > - Make the get_max_files export use _GPL - only unix.ko uses it. > > > > The real question is, does af_unix really need to allow beeing built > > modular? It's quite different from other network protocol and deeply > > tied to the kernel due to things like descriptor passing or using > > the filesystem namespace. I already had to export another symbol that > > really should be internal just for it, and if one module acquires lots > > of such hacks it's usually a bad sign.. > > in 2.4 the answer would have been simple; modutils back then used > AF_UNIX stuff before it could load modules, so modular was in practice > impossible. > > Anyway I'd agree with making this non-modular... NOBODY will use this as > a module, or if they do loading it somehow is the very first thing done. > You just can't live without this, so making it a module is non-sensical. So let's send a patch. ;-) cu Adrian <-- snip --> CONFIG_UNIX=m doesn't make much sense. Signed-off-by: Adrian Bunk <bunk@stusta.de> --- linux-2.6.16-rc4-mm1-full/net/unix/Kconfig.old 2006-02-20 14:40:19.000000000 +0100 +++ linux-2.6.16-rc4-mm1-full/net/unix/Kconfig 2006-02-20 14:40:27.000000000 +0100 @@ -3,7 +3,7 @@ # config UNIX - tristate "Unix domain sockets" + bool "Unix domain sockets" ---help--- If you say Y here, you will include support for Unix domain sockets; sockets are the standard Unix mechanism for establishing and ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-03-26 15:20 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-25 16:01 [2.6 patch] make UNIX a bool Adrian Bunk
2006-02-25 17:13 ` Stephen Hemminger
2006-02-25 17:28 ` Arjan van de Ven
2006-02-26 18:19 ` Diego Calleja
2006-02-25 22:46 ` Olaf Hering
2006-03-25 19:47 ` Adrian Bunk
2006-03-26 15:20 ` Jan-Benedict Glaw
[not found] <20060217154147.GL29846@in.ibm.com>
[not found] ` <20060217154337.GM29846@in.ibm.com>
[not found] ` <20060217154626.GN29846@in.ibm.com>
[not found] ` <20060218010414.1f8d6782.akpm@osdl.org>
[not found] ` <20060218092517.GP29846@in.ibm.com>
2006-02-18 12:14 ` [PATCH 2/2] fix file counting Christoph Hellwig
2006-02-18 12:31 ` Arjan van de Ven
2006-02-20 22:36 ` [2.6 patch] make UNIX a bool Adrian Bunk
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).