Function CMSPermissionsScannerWindows->find_excessive_file_perms

Definitions

sources/file_permissions_check.php

  • Find excessive file permissions.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$users array No No required parameter N/A N/A Users to check for
$acl array No No required parameter N/A N/A The ACL for the file
$perms integer No No required parameter N/A N/A A bitmask of permissions that would excessive

Returns

  • A tuple: A list of excessive permissions, Whether we will need to disable inheritance, Whether we will need to do a full 'reset', The SID we ended up using
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find excessive file permissions.
 *
 * @param  array $users Users to check for
 * @param  array $acl The ACL for the file
 * @param  integer $perms A bitmask of permissions that would excessive
 * @return array A tuple: A list of excessive permissions, Whether we will need to disable inheritance, Whether we will need to do a full 'reset', The SID we ended up using
 */

protected function find_excessive_file_perms(array $users, array $acl, int $perms) : array