Package: makejail
Version: 0.0.5-7
In attempting to include saslauthd (form sasl2-bin package) it attempts
to chdir to /var/run/saslauthd, as shown by the following strace snippet:
chdir("/var/run/saslauthd") = -1 ENOENT (No such file or
directory)
This file does exist outside of the chroot, but this does not trigger a
copy into the chroot - a patch against 0.0.5-7 to change the strace
patterns is attached.
I'm not sure if this is the "right" way to achieve it or not, but it
seems to work
Cheers
Ash Berlin
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#
--- tmp/usr/sbin/makejail~chdir
+++ tmp/usr/sbin/makejail
@@ -64,7 +64,9 @@
self.straceCommandStop="killall -9 strace"
self.straceCommandView=None
self.stracePatterns=['.*\("([^"]*)",.*\) .*= -[0-9]* ENO.*',
- '.*\("([^"]*)",.*\)
.*= -[0-9]* EACCES.*']
+ '.*\("([^"]*)",.*\)
.*= -[0-9]* EACCES.*',
+ 'chdir("([^"]*)"\) .*=
-[0-9]* ENO.*',
+ 'chdir("([^"]*)"\) .*=
-[0-9]* EACCESS.*']
self.straceCreatePatterns=['.*\("([^"]*)",.*O_CREAT.*\) .*
ENOENT .*',
'bind\(.*
path="([^"]*)".* ENOENT .*']
self.straceSocketPatterns=['connect\(.* path="([^"]*)".* ENOENT
.*']