Skip to content

Commit

Permalink
recipes-extended/libvirt: remove ProtectKernelModules
Browse files Browse the repository at this point in the history
libvirt need to access to the modules.alias file. The
ProtectKernelModules block this access and prevent libvirt to start VMs.

Remove the ProtectKernelModules option from the libvirtd.service file.
The module loading is already protected by the seccomp profile.

Signed-off-by: Mathieu Dupré <[email protected]>
  • Loading branch information
dupremathieu committed Dec 4, 2024
1 parent 0f2503d commit eaae465
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion recipes-extended/libvirt/files/libvirtd.service.fragment
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ EnvironmentFile=/etc/sysconfig/libvirtd
# Sandboxing
PrivateTmp=yes
NoNewPrivileges=true
ProtectKernelModules=yes
ProtectKernelTunables=no
ProtectControlGroups=no
RestrictSUIDSGID=true
Expand Down

0 comments on commit eaae465

Please sign in to comment.