[avahi] chroot & symlink

Lennart Poettering lennart at poettering.net
Sat Jan 12 07:50:33 PST 2008


On Sat, 12.01.08 16:36, Philipp Kempgen (philipp.kempgen at amooma.de) wrote:

> > I would happily merge a patch though, that would document this
> > behaviour in the man pages, and possibly some additional code that
> > warns the user via syslog if an absolute symlink or one that points
> > outside of the chroot is found in the services dir. So: Patches are
> > welcome!
> 
> OK. :-)
> Thanks for sharing your opinion.

BTW, if you need some short-term fix for this:

You can bind mount the specific files into the chroot instead of
symlinking.

mount --bind /path/to/your.service /etc/avahi/services/your.service

Yes, you can bind mount specific files, no just directories.

Have fun,

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4


More information about the avahi mailing list