summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-05-06 21:36:24 +0100
committerRichard Jones <rjones@redhat.com>2010-05-07 15:27:28 +0100
commit07369cb77a07f965cbf8e02f485c78a22c091f85 (patch)
treea62c684ab028167cbc44e96a6e0517f01b449167 /src
parent34067b5c362d5070e91364cc1ed6487497462b42 (diff)
downloadlibguestfs-07369cb77a07f965cbf8e02f485c78a22c091f85.tar.gz
libguestfs-07369cb77a07f965cbf8e02f485c78a22c091f85.tar.xz
libguestfs-07369cb77a07f965cbf8e02f485c78a22c091f85.zip
daemon: Fix for commands working on absolute symbolic links (RHBZ#579608).
The original idea (suggested by Al Viro) was to fork and chroot into the sysroot and read the file from there. Because of the separate process being chrooted, absolute links would be resolved correctly. The slightly modified idea is to open the file in the daemon process (but temporarily chrooted, so symlinks resolve correctly), fork, and have the subprocess just be responsible for copying the file. (Strictly speaking we don't need to fork, but this implementation is simpler). This commit just includes the changes needed to the command*() functions in daemon/guestfsd.c and adds an absolute symlink to the test ISO for testing it. Later commits will fix the broken daemon commands themselves.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions