074fd22
=============================
074fd22
SELinux support for Pure-FTPd
074fd22
=============================
074fd22
074fd22
With this package, Pure-FTPd is now protected in the same way VSFTPd and
074fd22
ProFTPd are in Fedora.
074fd22
074fd22
Read Access
074fd22
-----------
074fd22
To allow files to be accessed by Pure-FTPd, you need either :
074fd22
- to place them in /var/ftp
074fd22
- to label them with the public_content_t. To do that, you can use::
074fd22
    chcon -t public_content_t file_to_publish
074fd22
074fd22
Write Access
074fd22
------------
074fd22
If you wish to grant write access, you have to use the public_content_rw_t
074fd22
type, for example with this command::
074fd22
    chcon -t public_content_rw_t file_to_publish
074fd22
and you have to turn on the allow_ftpd_anon_write boolean using 
074fd22
system-config-securitylevel, or using the following command::
074fd22
    setsebool -P allow_ftpd_anon_write 1
074fd22
074fd22
Access to home directories
074fd22
--------------------------
074fd22
If you want to publish files in a user's home directory, you have to turn
074fd22
on the ftp_home_dir boolean, using system-config-securitylevel, or using
074fd22
the following command::
074fd22
    setsebool -P ftp_home_dir 1
074fd22