1. 20 Feb, 2016 3 commits
  2. 19 Feb, 2016 4 commits
  3. 18 Feb, 2016 1 commit
  4. 16 Feb, 2016 5 commits
  5. 15 Feb, 2016 3 commits
  6. 10 Feb, 2016 6 commits
  7. 08 Feb, 2016 2 commits
  8. 05 Feb, 2016 2 commits
  9. 04 Feb, 2016 5 commits
  10. 03 Feb, 2016 6 commits
  11. 02 Feb, 2016 3 commits
    • Fix mount_entry_on_generic() · ec50007f
      Christian Brauner authored
      In mount_entry_on_generic() we dereferenced a NULL pointer whenever a container
      without a rootfs was created. (Since mount_entry_on_systemfs() passes them with
      NULL.) We have mount_entry_on_generic() check whether rootfs != NULL.
      
      We also check whether rootfs != NULL in the functions ovl_mkdir() and
      mount_entry_create_aufs_dirs() and bail immediately. Rationale: For overlay and
      aufs lxc.mount.entry entries users give us absolute paths to e.g. workdir and
      upperdir which we create for them. We currently use rootfs->path and the
      lxcpath for the container to check that users give us a sane path to create
      those directories under and refuse if they do not. If we want to allow overlay
      mounts for containers without a rootfs they can easily be reworked.
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@mailbox.org>
    • Merge pull request #796 from brauner/2016-02-02/fix_execute_null_ptr_deref · 5e75dea2
      Stéphane Graber authored
      Fix NULL-ptr derefs for container without rootfs
    • Fix NULL-ptr derefs for container without rootfs · 1ec0e8e3
      Christian Brauner authored
      Since we allow containers to be created without a rootfs most checks in conf.c
      are not sane anymore. Instead of just checking if rootfs->path != NULL we need
      to check whether rootfs != NULL.
      
      Minor fixes:
      - Have mount_autodev() always return -1 on failure: mount_autodev() returns 0
        on success and -1 on failure. But when the return value of safe_mount() was
        checked in mount_autodev() we returned false (instead of -1) which caused
        mount_autodev() to return 0 (success) instead of the correct -1 (failure).
      Signed-off-by: 's avatarChristian Brauner <christian.brauner@mailbox.org>