1. 04 12月, 2013 2 次提交
  2. 12 9月, 2013 1 次提交
  3. 23 8月, 2013 1 次提交
  4. 16 4月, 2013 1 次提交
    • D
      Add -f FMT / --format FMT arg to qemu-nbd · e6b63677
      Daniel P. Berrange 提交于
      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: NDaniel P. Berrange <berrange@redhat.com>
      [Use errx, not err. - Paolo]
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      e6b63677
  5. 15 3月, 2013 1 次提交
  6. 23 2月, 2013 1 次提交
  7. 19 12月, 2012 1 次提交
  8. 12 11月, 2012 1 次提交
  9. 19 9月, 2012 4 次提交
  10. 24 7月, 2012 2 次提交
  11. 19 4月, 2012 3 次提交
  12. 17 2月, 2012 2 次提交
  13. 06 1月, 2012 1 次提交
  14. 22 12月, 2011 5 次提交
  15. 11 11月, 2011 6 次提交
  16. 19 9月, 2011 1 次提交
  17. 09 9月, 2011 1 次提交
  18. 21 8月, 2011 1 次提交
  19. 14 6月, 2011 1 次提交
  20. 08 6月, 2011 1 次提交
  21. 17 12月, 2010 1 次提交
  22. 21 9月, 2010 2 次提交