selinux-refpolicy/man/man8/ftpd_selinux.8

66 lines
2.0 KiB
Groff
Raw Permalink Normal View History

2008-08-20 19:15:49 +00:00
.TH "ftpd_selinux" "8" "17 Jan 2005" "dwalsh@redhat.com" "ftpd SELinux policy documentation"
2006-01-06 22:51:40 +00:00
.SH "NAME"
2008-08-20 19:15:49 +00:00
.PP
ftpd_selinux \- Security-Enhanced Linux policy for ftp daemons.
2006-01-06 22:51:40 +00:00
.SH "DESCRIPTION"
2008-08-20 19:15:49 +00:00
.PP
Security-Enhanced Linux provides security for ftp daemons via flexible mandatory access control.
2006-01-06 22:51:40 +00:00
.SH FILE_CONTEXTS
2008-08-20 19:15:49 +00:00
.PP
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.
2006-01-06 22:51:40 +00:00
.TP
2008-08-20 19:15:49 +00:00
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.
.PP
.B
semanage fcontext -a -t public_content_t "/var/ftp(/.*)?"
2006-01-06 22:51:40 +00:00
.TP
2008-08-20 19:15:49 +00:00
.B
2010-10-28 18:34:10 +00:00
restorecon -F -R -v /var/ftp
2006-01-06 22:51:40 +00:00
.TP
2008-08-20 19:15:49 +00:00
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.
.PP
.B
semanage fcontext -a -t public_content_rw_t "/var/ftp/incoming(/.*)?"
2006-01-06 22:51:40 +00:00
.TP
2008-08-20 19:15:49 +00:00
.B
2010-10-28 18:34:10 +00:00
restorecon -F -R -v /var/ftp/incoming
2006-01-06 22:51:40 +00:00
.SH BOOLEANS
2008-08-20 19:15:49 +00:00
.PP
SELinux policy is based on least privilege required and may also be customizable by setting a boolean with setsebool.
2006-01-06 22:51:40 +00:00
.TP
2008-08-20 19:15:49 +00:00
Allow ftp servers to read and write files with the public_content_rw_t file type.
.PP
.B
setsebool -P allow_ftpd_anon_write on
2006-01-06 22:51:40 +00:00
.TP
2008-08-20 19:15:49 +00:00
Allow ftp servers to read or write files in the user home directories.
.PP
.B
setsebool -P ftp_home_dir on
2006-01-06 22:51:40 +00:00
.TP
2008-08-20 19:15:49 +00:00
Allow ftp servers to read or write all files on the system.
.PP
.B
setsebool -P allow_ftpd_full_access on
.TP
Allow ftp servers to use cifs for public file transfer services.
.PP
.B
setsebool -P allow_ftpd_use_cifs on
.TP
Allow ftp servers to use nfs for public file transfer services.
.PP
.B
setsebool -P allow_ftpd_use_nfs on
2006-01-06 22:51:40 +00:00
.TP
2007-04-02 13:58:33 +00:00
system-config-selinux is a GUI tool available to customize SELinux policy settings.
2016-12-06 12:28:10 +00:00
.SH AUTHOR
2008-08-20 19:15:49 +00:00
.PP
2006-01-06 22:51:40 +00:00
This manual page was written by Dan Walsh <dwalsh@redhat.com>.
.SH "SEE ALSO"
2008-08-20 19:15:49 +00:00
.PP
2006-01-06 22:51:40 +00:00
2008-08-20 19:15:49 +00:00
selinux(8), ftpd(8), setsebool(8), semanage(8), restorecon(8)