[OpenWrt-Devel] [PATCH procd] service: start apps with LD_PRELOAD & lib disabling buffering

Etienne Champetier champetier.etienne at gmail.com
Sat Jun 20 15:46:05 EDT 2015


Hi,

2015-06-20 21:35 GMT+02:00 John Crispin <blogic at openwrt.org>:

>
>
> On 20/06/2015 20:53, Rafał Miłecki wrote:
> > On 20 June 2015 at 13:56, Jo-Philipp Wich <jow at openwrt.org> wrote:
> >>> i dont like this idea at all. calling ld-preload on every started app
> >>> just seems wrong
> >>
> >> I was the one suggesting the idea since we needed a solution which does
> >> not require modification of downstream programs. We could restrict the
> >> preloading to programs which requested stdio relaying support from procd
> >> and not preload for the rest.
> >
> > AFAIK there are 3 solutions to this:
> > 1) Modifying every app we want to support with procd + logging
> > 2) Using PTY which I tried in https://patchwork.ozlabs.org/patch/486670/
> > 3) Using LD_PRELOAD
> >
> > The PTY was pointed as not the best choice, so that's why I continued
> > with LD_PRELOAD. As Jo-Philipp pointed, it's the same solution
> > "stdbuf" uses. I'm afraid there isn't any better alternative :(
> >
>
> oh well, i still dont like it but that is not really relevant i guess ...
> :)
>
Aren't you using LD_PRELOAD for procd jailing stuff ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150620/3d25c3ad/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list