Apply SA-CORE-2014-005-D7.patch also in custom D7 platforms if not yet present and _PERMISSIONS_FIX=YES is set (default is NO).