Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libvirt: Fix #584 #598

Closed
wants to merge 1 commit into from
Closed

libvirt: Fix #584 #598

wants to merge 1 commit into from

Conversation

Nadrieril
Copy link
Member

This PR makes the libvirt images readable only by their owner/group (i.e. the user/group under which is run qemu, by default root/root on NixOS afaik). It fixes a critical vulnerability in the libvirt backend.
The user does not actually need read/write permissions on that file for nixops to run correctly. If they want access to that file for other reasons, they should configure their libvirt installation to manage permissions accordingly (see e.g. https://libvirt.org/drvqemu.html#securitydac).

@bjornfor
Copy link
Contributor

I'd say, please write a commit message that explains what this does (the PR cover message is good -- but that's not what enters the git repo) and someone with commit access please merge. (I too wondered why the image had perms 666 today...)

@Nadrieril
Copy link
Member Author

Done, I think this can be merged now.

rbvermaa pushed a commit that referenced this pull request Jul 24, 2017
@rbvermaa
Copy link
Member

Commited in 1266cdc

@rbvermaa rbvermaa closed this Jul 24, 2017
@Nadrieril Nadrieril deleted the fix-584 branch February 10, 2018 15:20
AmineChikhaoui pushed a commit to nix-community/nixops-libvirtd that referenced this pull request Jul 21, 2019
AmineChikhaoui pushed a commit to nix-community/nixops-libvirtd that referenced this pull request Jul 21, 2019
AmineChikhaoui pushed a commit to nix-community/nixops-libvirtd that referenced this pull request Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants