logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ftpd_selinux - Security-Enhanced Linux policy for ftp daemons.

Author

       This manual page was written by Dan Walsh <dwalsh@redhat.com>.

Booleans

       SELinux policy is based on least privilege required and may also be customizable  by  setting  a  boolean
       with setsebool.

       Allow ftp servers to read and write files with the public_content_rw_t file type.

       setsebool-Pallow_ftpd_anon_writeon

       Allow ftp servers to read or write files in the user home directories.

       setsebool-Pftp_home_diron

       Allow ftp servers to read or write all files on the system.

       setsebool-Pallow_ftpd_full_accesson

       Allow ftp servers to use cifs for public file transfer services.

       setsebool-Pallow_ftpd_use_cifson

       Allow ftp servers to use nfs for public file transfer services.

       setsebool-Pallow_ftpd_use_nfson

       system-config-selinux is a GUI tool available to customize SELinux policy settings.

Description

       Security-Enhanced Linux provides security for ftp daemons via flexible mandatory access control.

File_Contexts

       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.

       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.

       semanagefcontext-a-tpublic_content_t"/var/ftp(/.*)?"restorecon-F-R-v/var/ftp

       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.

       semanagefcontext-a-tpublic_content_rw_t"/var/ftp/incoming(/.*)?"restorecon-F-R-v/var/ftp/incoming

Name

       ftpd_selinux - Security-Enhanced Linux policy for ftp daemons.

See Also

selinux(8), ftpd(8), setsebool(8), semanage(8), restorecon(8)

dwalsh@redhat.com                                  17 Jan 2005                                   ftpd_selinux(8)

See Also