7157646 proftpd in the default configuration still does not have required privileges
authortomas klacko - Sun Microsystems - Prague Czech Republic <tomas.klacko@oracle.com>
Tue, 10 Apr 2012 04:03:43 -0700
changeset 765 934861104a36
parent 764 1927dad105b7
child 766 58402b94c13b
7157646 proftpd in the default configuration still does not have required privileges
components/proftpd/mod_solaris_priv.c
--- a/components/proftpd/mod_solaris_priv.c	Tue Apr 10 03:27:58 2012 -0700
+++ b/components/proftpd/mod_solaris_priv.c	Tue Apr 10 04:03:43 2012 -0700
@@ -172,6 +172,8 @@
 
     /* Needed for pam_unix_cred to chown files. */
     priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_FILE_CHOWN_SELF, NULL);
+    priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_FILE_CHOWN, NULL);
+    priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_FILE_OWNER, NULL);
 
     /* Needed to access /var/adm/wtmpx. */
     priv_set(PRIV_ON, PRIV_EFFECTIVE, PRIV_FILE_DAC_WRITE, NULL);