[CentOS] rsync and selinux

Mon Jan 7 15:41:56 UTC 2013
m.roth at 5-cent.us <m.roth at 5-cent.us>

lhecking at users.sourceforge.net wrote:
>> I use rsync extensively to transfer entire systems from and to SElinux
>> enforcing environments and have never had a problem with reads using
>> rsync when logged on as the root user.  My typical command line is
>> some variation of the following:
>> /usr/bin/rsync -avX --delete-after --specials --times \
>>   --exclude-from=/root/rsync.d/exclude.list \
>>* /.
>  (-a includes --times :)
>> Are you connecting as the root user?
>  I'm connecting in daemon mode since I'm using pre-defined modules. Any
> other solution requires either a password or setting up passwordless ssh,
>  which I'm not inclined to do in this case. The purpose here is automation.

Over here, we have a key we use only for backups with rsync, and we
restrict what commands can be run with that key to rsync.