1. 03 Oct, 2019 2 commits
  2. 01 Oct, 2019 1 commit
  3. 30 Sep, 2019 1 commit
  4. 27 Sep, 2019 1 commit
  5. 24 Sep, 2019 1 commit
  6. 20 Sep, 2019 2 commits
  7. 19 Sep, 2019 1 commit
  8. 18 Sep, 2019 2 commits
  9. 16 Sep, 2019 1 commit
  10. 06 Sep, 2019 1 commit
  11. 05 Sep, 2019 1 commit
    • utils: Copying source filename to avoid missing info. · a70c9e85
      Julio Faracco authored
      Some applications use information from LOOP_GET_STATUS64. The file
      associated with loop device is pointed inside structure field
      `lo_file_name`. The current code is setting up a loop device without
      this information. A legacy example of code checking this is cryptsetup:
      
          static char *_ioctl_backing_file(const char *loop)
          {
              struct loop_info64 lo64 = {0};
              int loop_fd;
      
              loop_fd = open(loop, O_RDONLY);
              if (loop_fd < 0)
                  return NULL;
      
              if (ioctl(loop_fd, LOOP_GET_STATUS64, &lo64) < 0) {
                  close(loop_fd);
                  return NULL;
              }
      
              lo64.lo_file_name[LO_NAME_SIZE-2] = '*';
              lo64.lo_file_name[LO_NAME_SIZE-1] = 0;
      
              close(loop_fd);
              return strdup((char*)lo64.lo_file_name);
          }
      
      It will return an empty string because lo_file_name was not set.
      Signed-off-by: 's avatarJulio Faracco <jcfaracco@gmail.com>
  12. 03 Sep, 2019 1 commit
  13. 02 Sep, 2019 1 commit
  14. 29 Aug, 2019 3 commits
  15. 28 Aug, 2019 3 commits
  16. 27 Aug, 2019 6 commits
  17. 26 Aug, 2019 3 commits
  18. 19 Aug, 2019 1 commit
  19. 15 Aug, 2019 1 commit
  20. 13 Aug, 2019 2 commits
  21. 03 Aug, 2019 2 commits
    • Merge pull request #3113 from jcfaracco/clang · 2ffda4c4
      Christian Brauner authored
      utils: Fix wrong integer of a function parameter.
    • utils: Fix wrong integer of a function parameter. · 7c3d3976
      Julio Faracco authored
      If SSL is enabled, utils will include function `do_sha1_hash()` to
      generate a sha1 encrypted buffer. Last function argument of
      `EVP_DigestFinal_ex()` requires a `unsigned int` but the current
      parameter is an `integer` type.
      
      See error:
      utils.c:350:38: error: passing 'int *' to parameter of type 'unsigned int *' converts between pointers to integer types with different sign
            [-Werror,-Wpointer-sign]
              EVP_DigestFinal_ex(mdctx, md_value, md_len);
                                                  ^~~~~~
      /usr/include/openssl/evp.h:549:49: note: passing argument to parameter 's' here
                                        unsigned int *s);
      Signed-off-by: 's avatarJulio Faracco <jcfaracco@gmail.com>
  22. 30 Jul, 2019 1 commit
  23. 29 Jul, 2019 2 commits