1. 06 Nov, 2015 1 commit
    • Make mount_entry_create_*_dirs() more robust · 8dc25557
      Christian Brauner authored
      The mount_entry_create_*_dirs() functions currently assume that the rootfs of
      the container is actually named "rootfs". This has the consequence that
      
      	del = strstr(lxcpath, "/rootfs");
      	if (!del) {
      		free(lxcpath);
      		lxc_free_array((void **)opts, free);
      		return -1;
      	}
      	*del = '\0';
      
      will return NULL when the rootfs of a container is not actually named "rootfs".
      This means the we return -1 and do not create the necessary upperdir/workdir
      directories required for the overlay/aufs mount to work. Hence, let's not make
      that assumption. We now pass lxc_path and lxc_name to
      mount_entry_create_*_dirs() and create the path directly. To prevent failure we
      also have mount_entry_create_*_dirs() check that lxc_name and lxc_path are not
      empty when they are passed in.
      Signed-off-by: 's avatarChristian Brauner <christianvanbrauner@gmail.com>
      Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
  2. 07 Oct, 2015 3 commits
  3. 06 Oct, 2015 1 commit
  4. 05 Oct, 2015 5 commits
  5. 29 Sep, 2015 10 commits
  6. 25 Sep, 2015 2 commits
  7. 21 Sep, 2015 14 commits
  8. 28 Aug, 2015 2 commits
  9. 27 Aug, 2015 2 commits