[Gllug] SeLinux and Xinetd & Rsync

Stuart Sears stuart at sjsears.com
Wed May 16 19:30:49 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alain Williams wrote:
> Summary: SeLinx stops rsync reading /etc/rsyncd.conf
> 
> I installed my system and needed rsync. I created a suitable
> /etc/rsyncd.conf (mode 644, owner root:root) and turned on rsync: 
> chkconfig rsync on (and restarted xinetd for good measure).
> 
> Whenever I try to do an rsync from another machine I get the
> following in /var/log/messages: May 13 23:09:18 gateway
> rsyncd[11327]: rsync: unable to open configuration file
> "/etc/rsyncd.conf": Permission denied (13) May 13 23:09:18 gateway
> rsyncd[11327]: rsync error: syntax or usage error (code 1) at
> clientserver.c(741) [receiver=2.6.8]
> 
> If I type: setenforce 0 it works fine .... so the problem is SELinux.
> I would like to leave SELinux on, but how do I get rsync to work ?
avc messages?
they'll be in /var/log/messages or /var/log/audit/audit.log
this will at least help work out what the issue is exactly...

although the error may suggest that /etc/rsyncd.conf is mislabeled
so, as well as the error logs, the output of
ls -Z /etc/rsyncd.conf
and
semanage fcontext -l | grep rsync
could help here

Regards

Stuart

- --
Stuart Sears RHCA RHCSS RHCX STFU PDQ RIAA MP3
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGS1vpamPtx1brPQ4RAqHVAJ9E78oCp4CV9kQ93iVAboGMumTkugCeL8pa
pDkp4qgEfyeYm1D5HlqL9Gg=
=lqgk
-----END PGP SIGNATURE-----
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list