ftpd_selinux   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil
Section: ftpd SELinux policy documentation (8)
Updated: 17 Jan 2005
Sommaire  



NAME   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

ftpd_selinux - Security-Enhanced Linux policy for ftp daemons.  




DESCRIPTION   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

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




FILE_CONTEXTS   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

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.

semanage fcontext -a -t public_content_t "/var/ftp(/.*)?"

restorecon -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.

semanage fcontext -a -t public_content_rw_t "/var/ftp/incoming(/.*)?"

restorecon -R -v /var/ftp/incoming

 



BOOLEANS   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

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 -P allow_ftpd_anon_write on

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

setsebool -P ftp_home_dir on

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

setsebool -P allow_ftpd_full_access on

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

setsebool -P allow_ftpd_use_cifs on

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

setsebool -P allow_ftpd_use_nfs on

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



AUTHOR   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

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

 




SEE ALSO   Début   Précédent   Suivant   Sommaire   Préc.page.lue   Accueil

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


 



Sommaire   Début   Suivant   Sommaire   Préc.page.lue   Accueil
NAME
DESCRIPTION
FILE_CONTEXTS
BOOLEANS
AUTHOR
SEE ALSO

Table des mots clés   Début   Suivant   Sommaire   Préc.page.lue   Accueil
restorecon -R -v /var/ftpFILE_CONTEXTS
restorecon -R -v /var/ftp/incomingFILE_CONTEXTS



Ce document a été créé par man2html suivi de man2html.pl, le 17/10/2008 17:50:11, en utilisant les pages de 'man'.
 

Valid HTML 4.01 Transitional