1. 04 Dec, 2013 2 commits
  2. 12 Sep, 2013 1 commit
  3. 22 Aug, 2013 1 commit
  4. 15 Apr, 2013 1 commit
    • Daniel P. Berrange's avatar
      Add -f FMT / --format FMT arg to qemu-nbd · e6b63677
      Daniel P. Berrange authored
      Currently the qemu-nbd program will auto-detect the format of
      any disk it is given. This behaviour is known to be insecure.
      For example, if qemu-nbd initially exposes a 'raw' file to an
      unprivileged app, and that app runs
      
         'qemu-img create -f qcow2 -o backing_file=/etc/shadow /dev/nbd0'
      
      then the next time the app is started, the qemu-nbd will now
      detect it as a 'qcow2' file and expose /etc/shadow to the
      unprivileged app.
      
      The only way to avoid this is to explicitly tell qemu-nbd what
      disk format to use on the command line, completely disabling
      auto-detection. This patch adds a '-f' / '--format' arg for
      this purpose, mirroring what is already available via qemu-img
      and qemu commands.
      
        qemu-nbd --format raw -p 9000 evil.img
      
      will now always use raw, regardless of what format 'evil.img'
      looks like it contains
      Signed-off-by: default avatarDaniel P. Berrange <berrange@redhat.com>
      [Use errx, not err. - Paolo]
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
      e6b63677
  5. 15 Mar, 2013 1 commit
  6. 22 Feb, 2013 1 commit
  7. 19 Dec, 2012 1 commit
  8. 12 Nov, 2012 1 commit
  9. 19 Sep, 2012 4 commits
  10. 24 Jul, 2012 2 commits
  11. 19 Apr, 2012 3 commits
  12. 17 Feb, 2012 2 commits
  13. 06 Jan, 2012 1 commit
  14. 22 Dec, 2011 5 commits
  15. 11 Nov, 2011 6 commits
  16. 19 Sep, 2011 1 commit
  17. 09 Sep, 2011 1 commit
  18. 20 Aug, 2011 1 commit
  19. 13 Jun, 2011 1 commit
  20. 08 Jun, 2011 1 commit
  21. 17 Dec, 2010 1 commit
  22. 21 Sep, 2010 2 commits