It seems that Cobbler's usage of restorecon is also not only slow, but 
it's also unneccessary.

Right now I think this is the cause of the "slow sync" problem.

So, my current plan, unless this turns out to /not/ work is:

(A)   have cobbler check warn if the following semanage rules aren't 
set, and tell the user to run them:

/usr/sbin/semanage fcontext -a -t public_content_t "/var/www/cobbler/images/.*"
/usr/sbin/semanage fcontext -a -t public_content_t "/var/lib/tftpboot/images/.*"
/usr/sbin/semanage fcontext -a -t public_content_t "/tftpboot/images/.*"


(B)  Remove the logic in cobbler that calls restorecon, as copies should 
inherit the SELinux context of the directory in question.  (Move's dont, but we 
don't use move).


This should speed up things considerably.


--Michael


_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to