[root@newcaprica dnsmasq]# service libvirtd restart Stopping libvirtd daemon: [ OK ] Starting libvirtd daemon: [ OK ] dnsmasq[24840]: segfault at 00000000ffffffff rip 00000037dfa79530 rsp 00007fff5d62f4d8 error 4 module dnsmasqrule 1.0; require { type virt_var_lib_t; type dnsmasq_t; class dir { write add_name }; class file create; } #============= dnsmasq_t ============== allow dnsmasq_t virt_var_lib_t:dir { write add_name }; allow dnsmasq_t virt_var_lib_t:file create;
I am seriously confused. Prior to semodule -i, it failed on every attempt. But now after semodule -r and even a reboot, it wont fail anymore. How can I be sure that my custom semodules are truly being removed? This isn't the first time this has happened to me.
You can search through the active policy with sesearch sesearch --allow | grep dnmasq | grep virt_var_lib
BTW an update to policy includes these rules in dnmasq optional_policy(` virt_rw_lib_files(dnsmasq_t) ') So if inbetween the time you installed your policy module. I fix upstream and you update, this could happen.