Unix and Linux Discussions Tagged with rsync |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
71,942 |
Shell Programming and Scripting |
|
|
|
1 |
11,112 |
Shell Programming and Scripting |
|
|
|
5 |
9,953 |
Shell Programming and Scripting |
|
|
|
5 |
16,502 |
Linux |
|
|
|
2 |
3,534 |
Shell Programming and Scripting |
|
|
|
12 |
11,357 |
Shell Programming and Scripting |
|
|
|
5 |
7,985 |
Ubuntu |
|
|
|
22 |
5,448 |
Shell Programming and Scripting |
|
|
|
11 |
10,882 |
Solaris |
|
|
|
4 |
5,520 |
Shell Programming and Scripting |
|
|
|
4 |
2,402 |
Shell Programming and Scripting |
|
|
|
1 |
7,204 |
Shell Programming and Scripting |
|
|
|
1 |
4,070 |
Shell Programming and Scripting |
|
|
|
2 |
17,481 |
Shell Programming and Scripting |
|
|
|
2 |
1,877 |
UNIX for Advanced & Expert Users |
|
|
|
7 |
3,695 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
6,558 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
2,430 |
Shell Programming and Scripting |
|
|
|
1 |
2,844 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,278 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
4,646 |
Shell Programming and Scripting |
|
|
|
1 |
7,971 |
Shell Programming and Scripting |
|
|
|
9 |
15,530 |
SCO |
|
|
|
1 |
8,051 |
UNIX for Advanced & Expert Users |
|
|
|
11 |
25,354 |
Emergency UNIX and Linux Support |
|
|
|
3 |
2,127 |
Shell Programming and Scripting |
|
|
|
0 |
2,005 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
6,939 |
Shell Programming and Scripting |
|
|
|
3 |
4,726 |
Shell Programming and Scripting |
|
|
|
8 |
5,187 |
Linux |
|
|
|
4 |
2,526 |
Shell Programming and Scripting |
|
|
|
2 |
3,212 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
2,132 |
Shell Programming and Scripting |
|
|
|
7 |
8,867 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,969 |
Shell Programming and Scripting |
|
|
|
2 |
3,196 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
7,003 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
6,658 |
Shell Programming and Scripting |
|
|
|
1 |
2,037 |
Solaris |
|
|
|
9 |
14,863 |
OS X (Apple) |
rsync_selinux(8) rsync Selinux Policy documentation rsync_selinux(8)
NAME
rsync_selinux - Security Enhanced Linux Policy for the rsync daemon
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/
SHARING FILES
If you want to share files with multiple domains (Apache, FTP, rsync, Samba), you can set a file context of public_content_t and pub-
lic_content_rw_t. These context allow any of the above domains to read the content. If you want a particular domain to write to the pub-
lic_content_rw_t domain, you must set the appropriate boolean. allow_DOMAIN_anon_write. So for rsync you would execute:
setsebool -P allow_rsync_anon_write=1
BOOLEANS
system-config-selinux is a GUI tool available to customize SELinux policy settings.
AUTHOR
This manual page was written by Dan Walsh <dwalsh@redhat.com>.
SEE ALSO
selinux(8), rsync(1), chcon(1), setsebool(8), semanage(8)
dwalsh@redhat.com 17 Jan 2005 rsync_selinux(8)