Messages in this thread | | | From | (H. Peter Anvin) | Subject | Re: #!perl - alternative path to script interpreters - patch to 2.2 | Date | 23 Mar 1999 08:45:04 GMT |
| |
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/
| |