SELinux problem

asked Apr 10, 2012 in General by ross (850 points)
hi there

Recently I moved my CVS server to a new machine that is running SELinux in enforcing mode. And now I’m having a problem logging into the CVS server. I checked the file permissions (Initial permissions:
drwxrwxr-x root cvsadmin system_u:object_r:home_root_t:s0 /home/cvsroot ) and it could not read the config file even though it’s world readable, So I guess this SELinux problem. Does anyone know how to fix this?

1 Answer

0 like 0 dislike
answered Apr 10, 2012 by lionhost (4,060 points)
change the permissions using thw following code
# semanage fcontext -a -t cvs_data_t "/home/cvsroot(/.*)?"
# /sbin/restorecon -R -v /home/cvsroot

New permissions:
drwxrwxr-x root cvsadmin system_u:object_r:cvs_data_t:s0 /home/cvsroot