Product SiteDocumentation Site

Chapter 22. rsync

22.1. rsync and SELinux
22.2. Types
22.3. Booleans
22.4. Configuration Examples
22.4.1. Rsync as a daemon
The rsync utility performs fast file transfer and it is used for synchronizing data between systems. [23]
When using Fedora, the rsync package provides rsync. Run the following command to see if the rsync package is installed:
~]$ rpm -q rsync
package rsync is not installed
If it is not installed, use the DNF utility as root to install it:
~]# dnf install rsync

22.1. rsync and SELinux

SELinux requires files to have an extended attribute to define the file type. Policy governs the access daemons have to these files. If you want to share files using the rsync daemon, you must label the files and directories with the public_content_t type. Like most services, correct labeling is required for SELinux to perform its protection mechanisms over rsync.[24]


[23] See the Rsync project page for more information.
[24] See the rsync_selinux(8) manual page for more information about rsync and SELinux.