Bug 916279 - kvm/spice password provided on command line should be masked from process ps status
Summary: kvm/spice password provided on command line should be masked from process ps ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: qemu
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Fedora Virtualization Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-27 17:37 UTC by Frank Ch. Eigler
Modified: 2013-02-28 22:18 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-28 22:18:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Frank Ch. Eigler 2013-02-27 17:37:23 UTC
Plaintext-specified passwords should be nuked from the later process-visible command line, making this a bit of a security risk.

% qemu-kvm -vga qxl -spice port:NNN,password=FOOBAR &
% ps awux
[...shows FOOBAR...]

It may be possible to correct this by updating argv[] string contents at run time.

Comment 1 Daniel Berrangé 2013-02-27 22:43:34 UTC
While this feature exists, it is strongly recommended that no one use it. There is a secure way to provide a password via the monitor command, which all management apps including libvirt use in preference to this. I don't think it is worth going to the trouble of trying to munge argv. People should simply not use this feature at all.

Comment 2 Cole Robinson 2013-02-28 22:18:14 UTC
(In reply to comment #1)
> While this feature exists, it is strongly recommended that no one use it.
> There is a secure way to provide a password via the monitor command, which
> all management apps including libvirt use in preference to this. I don't
> think it is worth going to the trouble of trying to munge argv. People
> should simply not use this feature at all.

Agreed. Frank, if you still feel strongly about it, please file an upstream qemu bug:

https://bugs.launchpad.net/qemu/


Note You need to log in before you can comment on or make changes to this bug.