rsync_selinux - Security Enhanced Linux Policy for the rsync daemon
Contents
Booleans
system-config-selinux is a GUI tool available to customize SELinux policy settings.
Description
Security-Enhanced Linux secures the rsync server via flexible mandatory access control.
File_Contexts
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 public_content_t. So if you created a special directory /var/rsync, you would need to
label the directory with the chcon tool.
chcon -t public_content_t /var/rsync
To make this change permanent (survive a relabel), use the semanage command to add the change to file
context configuration:
semanage fcontext -a -t public_content_t "/var/rsync(/.*)?"
This command adds the following entry to /etc/selinux/POLICYTYPE/contexts/files/file_contexts.local:
/var/rsync(/.*)? system_u:object_r:publix_content_t:s0
Run the restorecon command to apply the changes:
restorecon -R -v /var/rsync/
Name
rsync_selinux - Security Enhanced Linux Policy for the rsync daemon
See Also
selinux(8), rsync(1), chcon(1), setsebool(8), semanage(8) dwalsh@redhat.com 17 Jan 2005 rsync_selinux(8)
