core/win32/os.c
/* Recommended that callers check ownership of a file that is
 * guaranteed to not be writable.
 */
Recommended that callers check ownership of a file that is
guaranteed to not be writable.
Recommended that callers check ownership of a file that is guaranteed to not be writable .
bool
os_filesystem_supports_ownership(HANDLE file_or_directory_handle)
{
    if (os_validate_owner_equals(file_or_directory_handle, get_Everyone_SID())) {
        SYSLOG_INTERNAL_WARNING_ONCE("cache root directory is on FAT32, no security\n");
        return false;
    } else {
        return true;
    }
    return false;
}
bool os_filesystem_supports_ownership ( HANDLE file_or_directory_handle ) { if ( os_validate_owner_equals ( file_or_directory_handle , get_Everyone_SID ( ) ) ) { SYSLOG_INTERNAL_WARNING_ONCE ( " \n " ) ; return false ; } else { return true ; } return false ; }
Recommended that callers check ownership of a file that is
 guaranteed to not be writable.
Recommended that callers check ownership of a file that is guaranteed to not be writable .
/* Can we verify we are on FAT32 in a documented way to be certain? */ /* Currently done by checking if cache\ directory is Owned by
     * Everyone - which certainly should only happen on FAT32.
     */ /* FIXME: Alternatively we can test for support for file
     * ID/reference, since creation by file reference is only
     * supported on NTFS
     */ /* either FAT32 or we have a proper owner */ /* On FAT32 :
         * 0:000> !sid poi(owner)
         * SID is: S-1-1-0 Everyone
         *
         * We assume that a malicious user cannot set the SID to
         * Everyone.  Although Everyone is not the same as Anonymous
         * Logon S-1-5-7, just in case malware can run as Everyone and
         * creates a file we cannot decide we're on FAT32 just based
         * on this for files that.
         */ /* we have a real owner - presumably NTFS */