--- old/src/os/linux/vm/perfMemory_linux.cpp Thu Jul 30 14:03:33 2015 +++ new/src/os/linux/vm/perfMemory_linux.cpp Thu Jul 30 14:03:32 2015 @@ -217,9 +217,9 @@ // return false; } - // See if the uid of the directory matches the effective uid of the process. - // - if (statp->st_uid != geteuid()) { + // If user is not root then see if the uid of the directory matches the effective uid of the process. + uid_t euid = geteuid(); + if ((euid != 0) && (statp->st_uid != euid)) { // The directory was not created by this user, declare it insecure. // return false;