LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* modprobe_path & hotplug_path
@ 2004-05-22 22:05 Vadim Lobanov
  2004-05-22 22:11 ` Scott C. Batura
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vadim Lobanov @ 2004-05-22 22:05 UTC (permalink / raw)
  To: linux-kernel

Hi,

Just wanted to inquire about something curious that I saw in the kernel 
subtree...

Currently modprobe_path and hotplug_path are declared as "char ...[256]", 
though it seems to me (unless I've missed something), that they only ever 
hold "/sbin/modprobe" and "/sbin/hotplug", respectively. Any reason why we 
couldn't simply declare them "char ...[]", and let them be sized 
appropriately?

Let me know if I've missed something.

Thanks,
Vadim Lobanov


^ permalink raw reply	[flat|nested] 4+ messages in thread

* (no subject)
  2004-05-22 22:05 modprobe_path & hotplug_path Vadim Lobanov
@ 2004-05-22 22:11 ` Scott C. Batura
  2004-05-22 22:13 ` modprobe_path & hotplug_path Brian Gerst
  2004-05-22 22:30 ` Horst von Brand
  2 siblings, 0 replies; 4+ messages in thread
From: Scott C. Batura @ 2004-05-22 22:11 UTC (permalink / raw)
  Cc: linux-kernel


unsubscribe linux-kernel





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: modprobe_path & hotplug_path
  2004-05-22 22:05 modprobe_path & hotplug_path Vadim Lobanov
  2004-05-22 22:11 ` Scott C. Batura
@ 2004-05-22 22:13 ` Brian Gerst
  2004-05-22 22:30 ` Horst von Brand
  2 siblings, 0 replies; 4+ messages in thread
From: Brian Gerst @ 2004-05-22 22:13 UTC (permalink / raw)
  To: Vadim Lobanov; +Cc: linux-kernel

Vadim Lobanov wrote:
> Hi,
> 
> Just wanted to inquire about something curious that I saw in the kernel 
> subtree...
> 
> Currently modprobe_path and hotplug_path are declared as "char ...[256]", 
> though it seems to me (unless I've missed something), that they only ever 
> hold "/sbin/modprobe" and "/sbin/hotplug", respectively. Any reason why we 
> couldn't simply declare them "char ...[]", and let them be sized 
> appropriately?
> 
> Let me know if I've missed something.
> 
> Thanks,
> Vadim Lobanov

Because userspace can change them.

--
				Brian Gerst

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: modprobe_path & hotplug_path 
  2004-05-22 22:05 modprobe_path & hotplug_path Vadim Lobanov
  2004-05-22 22:11 ` Scott C. Batura
  2004-05-22 22:13 ` modprobe_path & hotplug_path Brian Gerst
@ 2004-05-22 22:30 ` Horst von Brand
  2 siblings, 0 replies; 4+ messages in thread
From: Horst von Brand @ 2004-05-22 22:30 UTC (permalink / raw)
  To: Vadim Lobanov; +Cc: linux-kernel, vonbrand

Vadim Lobanov <vadim@cs.washington.edu> said:
> Currently modprobe_path and hotplug_path are declared as "char ...[256]", 
> though it seems to me (unless I've missed something), that they only ever 
> hold "/sbin/modprobe" and "/sbin/hotplug", respectively. Any reason why we 
> couldn't simply declare them "char ...[]", and let them be sized 
> appropriately?

They can be modified by writing into appropiate /proc files.
-- 
Dr. Horst H. von Brand                   User #22616 counter.li.org
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-05-22 22:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-22 22:05 modprobe_path & hotplug_path Vadim Lobanov
2004-05-22 22:11 ` Scott C. Batura
2004-05-22 22:13 ` modprobe_path & hotplug_path Brian Gerst
2004-05-22 22:30 ` Horst von Brand

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).