lkml.org 
[lkml]   [1999]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH] scripts with stdin replaced
Richard Guenther wrote:
> Patching binfmt_script did not work, as /proc is not mounted
> at early boot, so every script failed (tested it) and I dont
> know where and if to add magic checks to binfmt_script to check
> for "early boot stage". Btw. one really wants to carefully choose
> which interpreters are allowed to be called with suid-scripts.
> I personally wont let bash do it.
>
> Comments? Richard.

It'd be much better to make the path for "/dev/fd" a sysctl. Until it
is set, run as usual. Then binfmt_script would work... you'd just
have your boot scripts do:

mount /proc
echo "/dev/fd" > /proc/sys/kernel/dev_fd_path

...or something like that.

-Mitch

-
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:52    [W:0.052 / U:2.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site