man page update from dan.

This commit is contained in:
Chris PeBenito 2009-08-31 09:57:55 -04:00
parent 6774578327
commit da4332a3c5
2 changed files with 15 additions and 7 deletions

View File

@ -21,10 +21,18 @@ would need to label the directory with the chcon tool.
.TP .TP
chcon -t public_content_t /var/rsync chcon -t public_content_t /var/rsync
.TP .TP
If you want to make this permanant, i.e. survive a relabel, you must add an entry to the file_contexts.local file. .TP
.EX To make this change permanent (survive a relabel), use the semanage command to add the change to file context configuration:
/etc/selinux/POLICYTYPE/contexts/files/file_contexts.local .TP
/var/rsync(/.*)? system_u:object_r:public_content_t semanage fcontext -a -t public_content_t "/var/rsync(/.*)?"
.TP
This command adds the following entry to /etc/selinux/POLICYTYPE/contexts/files/file_contexts.local:
.TP
/var/rsync(/.*)? system_u:object_r:publix_content_t:s0
.TP
Run the restorecon command to apply the changes:
.TP
restorecon -R -v /var/rsync/
.EE .EE
.SH SHARING FILES .SH SHARING FILES
@ -41,4 +49,4 @@ system-config-selinux is a GUI tool available to customize SELinux policy settin
This manual page was written by Dan Walsh <dwalsh@redhat.com>. This manual page was written by Dan Walsh <dwalsh@redhat.com>.
.SH "SEE ALSO" .SH "SEE ALSO"
selinux(8), rsync(1), chcon(1), setsebool(8) selinux(8), rsync(1), chcon(1), setsebool(8), semanage(8)

View File

@ -20,7 +20,7 @@ semanage fcontext -a -t samba_share_t "/var/eng(/.*)?"
.TP .TP
This command adds the following entry to /etc/selinux/POLICYTYPE/contexts/files/file_contexts.local: This command adds the following entry to /etc/selinux/POLICYTYPE/contexts/files/file_contexts.local:
.TP .TP
/var/eng(/.*)? system_u:object_r:samba_share_t /var/eng(/.*)? system_u:object_r:samba_share_t:s0
.TP .TP
Run the restorecon command to apply the changes: Run the restorecon command to apply the changes:
.TP .TP
@ -53,4 +53,4 @@ system-config-selinux is a GUI tool available to customize SELinux policy settin
This manual page was written by Dan Walsh <dwalsh@redhat.com>. This manual page was written by Dan Walsh <dwalsh@redhat.com>.
.SH "SEE ALSO" .SH "SEE ALSO"
selinux(8), samba(7), chcon(1), setsebool(8) selinux(8), samba(7), chcon(1), setsebool(8), semanage(8)