Add fixes for CVE-2008-1614
[manu/suphp.git] / src / API_Linux.hpp
index c75ad42..83b07a4 100644 (file)
@@ -169,6 +169,11 @@ namespace suPHP {
        virtual GroupInfo File_getGroup(const File& file) const
            throw (SystemException);
 
+        /**
+         * Checks whether a file is a symlink
+         */
+        virtual bool File_isSymlink(const File& file) const throw (SystemException);
+        
        /**
         * Runs another program (replaces current process)
         */
@@ -191,6 +196,12 @@ namespace suPHP {
         * Sets umask
         */
        virtual void setUmask(int umask) const throw (SystemException);
+
+       /**
+        * Sets new root directory for current process
+        */
+       virtual void chroot(const std::string& dir) const 
+           throw (SystemException);
     };
 };