]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc: don't try to resolve a NULL path for filesystems
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 11 Aug 2016 13:02:48 +0000 (14:02 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 16 Aug 2016 08:36:35 +0000 (09:36 +0100)
commit81aa4385d7405531ab9b6d10e20c656c196197f8
treed54d13fb6ec975aba87bd1e25158fdd1e0dc5a4f
parent2140e3da9aee49e26b8f15c16a80244204f684d8
lxc: don't try to resolve a NULL path for filesystems

  <filesystem type='ram' accessmode='passthrough'>
    <source usage='524288' units='KiB'/>
    <target dir='/dev/shm'/>
  </filesystem>

would lead to lxcContainerResolveSymlinks calling
access(NULL) because it failed to check if fs->src->path
was non-NULL. This is a regression caused by

  commit da665fbd4858890fbb3bbf5da2a7b6ca37bb3220
  Author: Olga Krishtal <okrishtal@virtuozzo.com>
  Date:   Thu Jul 14 16:52:38 2016 +0300

    filesystem: adds possibility to use storage pool as fs source

Signed-off-by: Olga Krishtal <okrishtal@virtuozzo.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/lxc/lxc_container.c