lkml.org 
[lkml]   [1999]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: #!perl - alternative path to script interpreters - patch to 2.2
Date
Followup to:  <19990321201803.B404@bug.ucw.cz>
By author: Pavel Machek <pavel@bug.ucw.cz>
In newsgroup: linux.dev.kernel
>
> Hi!
>
> > > > But script written under different OS will work under linux without
> > > > change.
> > > It won't unless you have root privileges to tweak the translation
> > > table used by your patch.
> >
> > Yes. :-(
> > .. and not: translation table is ordinary directory. (but probably
> > only root should have write access to it).
> >
> > Note that this patch is not very usefull but it is also very thin
> > in terms of memory usage (and doesn't affect speed).
>
> You want people to write
> #!perl
>
> instead of
>
> #!/path/perl
>
> . Ok. Make them write
>
> #!/etc/shells/perl
>
> instead, and make sure /etc/shells contains right symlinks. No kernel
> modification needed.
>
> Or just make sure everybody has perl installed in /usr/bin or at least
> has /usr/bin/perl -> /real/location/of/perl. [Right way, IMO]
>

Make that /etc/scripts or something. However, the general idea is
sound.

-hpa
--
"The user's computer downloads the ActiveX code and simulates a 'Blue
Screen' crash, a generally benign event most users are familiar with
and that would not necessarily arouse suspicions."
-- Security exploit description on http://www.zks.net/p3/how.aspb

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

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