components/proftpd/mod_solaris_priv.c
changeset 718 480dcaab9d63
parent 707 5953149bd743
child 765 934861104a36
equal deleted inserted replaced
717:0f8fd8ad0ffa 718:480dcaab9d63
   173     /* Needed for pam_unix_cred to chown files. */
   173     /* Needed for pam_unix_cred to chown files. */
   174     priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_FILE_CHOWN_SELF, NULL);
   174     priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_FILE_CHOWN_SELF, NULL);
   175 
   175 
   176     /* Needed to access /var/adm/wtmpx. */
   176     /* Needed to access /var/adm/wtmpx. */
   177     priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_FILE_DAC_WRITE, NULL);
   177     priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_FILE_DAC_WRITE, NULL);
       
   178 
       
   179     /* Enable chroot for anonymous login. */
       
   180     priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_PROC_CHROOT, NULL);
   178 }
   181 }
   179 
   182 
   180 /* Setup priviledges before the user responds to the user prompt
   183 /* Setup priviledges before the user responds to the user prompt
   181  * from the ftp server so that a secure Kerberos session can be
   184  * from the ftp server so that a secure Kerberos session can be
   182  * established and also the user can login as root
   185  * established and also the user can login as root