Chris PeBenito b4f23e6
.TH  "ftpd_selinux"  "8"  "17 Jan 2005" "dwalsh@redhat.com" "ftpd SELinux policy documentation"
Chris PeBenito bf080a4
.SH "NAME"
Chris PeBenito b4f23e6
.PP
Chris PeBenito b4f23e6
ftpd_selinux \- Security-Enhanced Linux policy for ftp daemons.
Chris PeBenito bf080a4
.SH "DESCRIPTION"
Chris PeBenito b4f23e6
.PP
Chris PeBenito b4f23e6
Security-Enhanced Linux provides security for ftp daemons via flexible mandatory access control.
Chris PeBenito bf080a4
.SH FILE_CONTEXTS
Chris PeBenito b4f23e6
.PP
Chris PeBenito b4f23e6
SELinux requires files to have a file type. File types may be specified with semanage and are restored with restorecon.  Policy governs the access that daemons have to files.
Chris PeBenito bf080a4
.TP
Chris PeBenito b4f23e6
Allow ftp servers to read the /var/ftp directory by adding the public_content_t file type to the directory and by restoring the file type.
Chris PeBenito b4f23e6
.PP
Chris PeBenito b4f23e6
.B
Chris PeBenito b4f23e6
semanage fcontext -a -t public_content_t "/var/ftp(/.*)?"
Chris PeBenito bf080a4
.TP
Chris PeBenito b4f23e6
.B
3eaa993
restorecon -F -R -v /var/ftp
Chris PeBenito bf080a4
.TP
Chris PeBenito b4f23e6
Allow ftp servers to read and write /var/tmp/incoming by adding the public_content_rw_t type to the directory and by restoring the file type.  This also requires the allow_ftpd_anon_write boolean to be set.
Chris PeBenito b4f23e6
.PP
Chris PeBenito b4f23e6
.B
Chris PeBenito b4f23e6
semanage fcontext -a -t public_content_rw_t "/var/ftp/incoming(/.*)?"
Chris PeBenito bf080a4
.TP
Chris PeBenito b4f23e6
.B
3eaa993
restorecon -F -R -v /var/ftp/incoming
Chris PeBenito bf080a4
Chris PeBenito bf080a4
.SH BOOLEANS
Chris PeBenito b4f23e6
.PP
Chris PeBenito b4f23e6
SELinux policy is based on least privilege required and may also be customizable by setting a boolean with setsebool.
Chris PeBenito bf080a4
.TP
Chris PeBenito b4f23e6
Allow ftp servers to read and write files with the public_content_rw_t file type.
Chris PeBenito b4f23e6
.PP
Chris PeBenito b4f23e6
.B
Chris PeBenito b4f23e6
setsebool -P allow_ftpd_anon_write on
Chris PeBenito bf080a4
.TP
Chris PeBenito b4f23e6
Allow ftp servers to read or write files in the user home directories.
Chris PeBenito b4f23e6
.PP
Chris PeBenito b4f23e6
.B
Chris PeBenito b4f23e6
setsebool -P ftp_home_dir on
Chris PeBenito bf080a4
.TP
Chris PeBenito b4f23e6
Allow ftp servers to read or write all files on the system.
Chris PeBenito b4f23e6
.PP
Chris PeBenito b4f23e6
.B
Chris PeBenito b4f23e6
setsebool -P allow_ftpd_full_access on
Chris PeBenito b4f23e6
.TP
Chris PeBenito b4f23e6
Allow ftp servers to use cifs for public file transfer services.
Chris PeBenito b4f23e6
.PP
Chris PeBenito b4f23e6
.B
Chris PeBenito b4f23e6
setsebool -P allow_ftpd_use_cifs on
Chris PeBenito b4f23e6
.TP
Chris PeBenito b4f23e6
Allow ftp servers to use nfs for public file transfer services.
Chris PeBenito b4f23e6
.PP
Chris PeBenito b4f23e6
.B
Chris PeBenito b4f23e6
setsebool -P allow_ftpd_use_nfs on
Chris PeBenito bf080a4
.TP
Chris PeBenito f4e2b19
system-config-selinux is a GUI tool available to customize SELinux policy settings.
Chris PeBenito bf080a4
.SH AUTHOR	
Chris PeBenito b4f23e6
.PP
Chris PeBenito bf080a4
This manual page was written by Dan Walsh <dwalsh@redhat.com>.
Chris PeBenito bf080a4
Chris PeBenito bf080a4
.SH "SEE ALSO"
Chris PeBenito b4f23e6
.PP
Chris PeBenito bf080a4
Chris PeBenito b4f23e6
selinux(8), ftpd(8), setsebool(8), semanage(8), restorecon(8)