Comment 4 for bug 1609072

Revision history for this message
Robie Basak (racb) wrote : Re: [Bug 1609072] Re: uvt-kvm assumes network is on virbr0

On Tue, Nov 19, 2019 at 04:20:19PM -0000, Rafael David Tinoco wrote:
> ...shall be enough to replace LIBVIRT_DNSMASQ_STATUS_FILE in order for
> libvirt_dnsmasq_status_file_mac_to_ip() to read the correct status
> file.

+1 on that approach. Even though uvtool doesn't typically run
privileged, perhaps it would be wise to sanitize the bridge name anyway
before looking for the file on the filesystem just to be safe. Perhaps
limit it to [A-Za-z0-9]? Or \w, in case users have unicode bridge names
(!)?