Daniel J Walsh wrote: > Is it time to move seuser and local file context labeling out of > libsemanage? I have just heard from the virt team that they want to > modify the context of a virt machine at creation time, so they have > looked at chcon -t virt_image_t. They understand that changing the > image will not survive a relabel but > > "Unfortunately, semanage is rather slow application to run. It also > pulls in the entire python runtime, which isn't something we can do in > libvirt. We really need some light-weight way of adding new file > contexts to the policy persistently." > > I explained they can call libsemanage via "C" but the comment brings up > a point of why does semanage recompile policy when changing file context > or the seusers file. All we really need to do is verify the contests > are correct and this should be a very fast operation. This has been on the todo list for quite a while. Much of the infrastructure is already there, look at direct_api.c:492 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.