Closed baby-gnu closed 4 years ago
In the kitchen output we can see that the configured perms in libvirtd.conf
are:
unix_sock_ro_perms should eq "0777"
unix_sock_rw_perms should eq "0770"
but the real perms are tested against values from systemd .socket
services:
libvirt_socket_rw mode should cmp == "0666"
libvirt_socket_ro mode should cmp == "0666"
We could enable new images after this PR is merged.
Regards.
Merged, thanks @baby-gnu.
:tada: This PR is included in version 3.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]
Changes related to the build system[chore]
Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]
Changes to the continuous integration configuration[feat]
A new feature[fix]
A bug fix[perf]
A code change that improves performance[refactor]
A code change that neither fixes a bug nor adds a feature[revert]
A change used to revert a previous commit[style]
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]
Documentation changes[test]
Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE
?No.
Related issues and/or pull requests
64
Describe the changes you're proposing
On systems with sockets created by systemd, the configuration in “libvirtd.conf” is not used.
test/integration/share/libraries/systemd_config.rb: new utility to get systemd service configuration options.
test/integration/share/libraries/libvirt_socket_admin.rb: load “libvirt-admin.socket” configuration and provide 3 methods to return owner, group and permissions defined. Fallback on default values.
test/integration/share/libraries/libvirt_socket_ro.rb: load “libvirt-ro.socket” configuration and provide 3 methods to return owner, group and permissions defined. Fallback on default values.
test/integration/share/libraries/libvirt_socket_rw.rb: load “libvirt.socket” configuration and provide 3 methods to return owner, group and permissions defined. Fallback on default values.
test/integration/default/controls/socket_admin_spec.rb: check socket owner, group and permissions against configured values.
test/integration/default/controls/socket_ro_spec.rb: ditoo.
test/integration/default/controls/socket_rw_spec.rb: ditoo.
Pillar / config required to test the proposed changes
Debug log showing how the proposed changes work
Documentation checklist
README
(e.g.Available states
).pillar.example
.Testing checklist
state_top
).Additional context