[OpenWrt-Devel] [PATCH] procd: add helper binaries to jail

Etienne Champetier champetier.etienne at gmail.com
Wed Aug 12 08:22:51 EDT 2015


Hi Maxim,
Le 12 août 2015 13:25, "Maxim Storchak" <m.storchak at gmail.com> a écrit :
>
> This allows to build jails with more than a single binary.
> May be used to run main program with a wrapper, f.e. ionice,
> or to add helper binaries for the main one (like gzip for tar with no
> build-in compression support).
>
> Usage:
> directly:
> ujail ... -b /usr/bin/main ... -- /bin/wrapper ... /usr/bin/main
> ujail ... -b /usr/bin/helper1 -b /bin/helper2 ... -- /usr/bin/main
> in init scripts:
> procd_add_jail_mount_bin /usr/bin/something /bin/helper
>
> Signed-off-by: Maxim Storchak <m.storchak at gmail.com>
> ---
>  package/system/procd/files/procd.sh                | 18 +++++++
>  .../procd/patches/100-ujail-helper-binary.patch    | 58
++++++++++++++++++++++
>  .../procd/patches/101-service-helper-binary.patch  | 15 ++++++

Procd is an OpenWrt project, you should send a patch against procd git on
this ML

I haven't tested your patch, but i really like the idea/feature

Regards,
Etienne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20150812/6a8bef06/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