[PATCH v2 2/4] unshare: new applet

Mike Frysinger vapier at gentoo.org
Mon Mar 14 14:11:42 UTC 2016


On 14 Mar 2016 11:08, Bartosz Gołaszewski wrote:
> 2016-03-11 18:24 GMT+01:00 Mike Frysinger <vapier at gentoo.org>:
> > On 11 Mar 2016 18:10, Bartosz Golaszewski wrote:
> >> +int unshare_main(int argc UNUSED_PARAM, char **argv)
> >> +{
> >> +     static struct namespace ns_list[] = {
> >
> > const ?
> >
> 
> Nope, we're using char *path to store the mount points.

that's kind of a big chunk of data to blend read-only & writable
data in.  can't you create a parallel array just for the writable
data and use the indices you have now to index it ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20160314/5ea1d996/attachment.asc>


More information about the busybox mailing list