Re: jail_bin_add: script to add binary and libs to chroot

2015-07-09 Thread David Coppa
On Tue, Jun 9, 2015 at 10:06 AM, Marc Espie wrote: > On Mon, Jun 08, 2015 at 03:37:27PM +0200, Landry Breuil wrote: >> On Mon, Jun 08, 2015 at 02:59:28PM +0200, Marc Espie wrote: >> > On Mon, Jun 08, 2015 at 01:46:17AM -0400, dan mclaughlin wrote: >> > > i figure this should be useful to some. >>

Re: jail_bin_add: script to add binary and libs to chroot

2015-06-09 Thread Marc Espie
On Mon, Jun 08, 2015 at 03:37:27PM +0200, Landry Breuil wrote: > On Mon, Jun 08, 2015 at 02:59:28PM +0200, Marc Espie wrote: > > On Mon, Jun 08, 2015 at 01:46:17AM -0400, dan mclaughlin wrote: > > > i figure this should be useful to some. > > > any nits welcome. > > > > Unfortunately, this will be

Re: jail_bin_add: script to add binary and libs to chroot

2015-06-08 Thread dan mclaughlin
On Mon, 8 Jun 2015 14:59:28 +0200 Marc Espie wrote: > On Mon, Jun 08, 2015 at 01:46:17AM -0400, dan mclaughlin wrote: > > i figure this should be useful to some. > > any nits welcome. > > Unfortunately, this will become increasingly useless in > gtk-land. > > Compare ldd firefox vs a ktrace of t

Re: jail_bin_add: script to add binary and libs to chroot

2015-06-08 Thread Sebastian Reitenbach
On 06/08/15 07:46, dan mclaughlin wrote: i figure this should be useful to some. any nits welcome. haven't used it ina while, but are you aware of security/jailkit? Sebastian #!/bin/ksh #copies a binary and libs to a chroot fs MYNAME=${0##*/} USAGE="$MYNAME bin jailroot" [[ "$1" = -h ]] &&

Re: jail_bin_add: script to add binary and libs to chroot

2015-06-08 Thread Landry Breuil
On Mon, Jun 08, 2015 at 02:59:28PM +0200, Marc Espie wrote: > On Mon, Jun 08, 2015 at 01:46:17AM -0400, dan mclaughlin wrote: > > i figure this should be useful to some. > > any nits welcome. > > Unfortunately, this will become increasingly useless in > gtk-land. > > Compare ldd firefox vs a ktra

Re: jail_bin_add: script to add binary and libs to chroot

2015-06-08 Thread Marc Espie
On Mon, Jun 08, 2015 at 01:46:17AM -0400, dan mclaughlin wrote: > i figure this should be useful to some. > any nits welcome. Unfortunately, this will become increasingly useless in gtk-land. Compare ldd firefox vs a ktrace of the running binary... :(

jail_bin_add: script to add binary and libs to chroot

2015-06-07 Thread dan mclaughlin
i figure this should be useful to some. any nits welcome. #!/bin/ksh #copies a binary and libs to a chroot fs MYNAME=${0##*/} USAGE="$MYNAME bin jailroot" [[ "$1" = -h ]] && { echo "USAGE $USAGE"; return 0; } isemptyv() { eval [ \${#$1} -eq 0 ]; } err() { echo "$MYNAME: ERR $*" >&2; } usage() { e