chef/spec/support/shared/functional/directory_resource.rb
# Set up the context for security tests
Set up the context for security tests
Set up the context for security tests
def allowed_acl(sid, expected_perms)
    [
      ACE.access_allowed(sid, expected_perms[:specific]),
      ACE.access_allowed(sid, expected_perms[:generic], (Chef::ReservedNames::Win32::API::Security::INHERIT_ONLY_ACE | Chef::ReservedNames::Win32::API::Security::CONTAINER_INHERIT_ACE | Chef::ReservedNames::Win32::API::Security::OBJECT_INHERIT_ACE))
    ]
  end
def allowed_acl ( sid , expected_perms ) [ ACE . access_allowed ( sid , expected_perms [ :specific ] ) , ACE . access_allowed ( sid , expected_perms [ :generic ] , ( Chef :: ReservedNames :: Win32 :: API :: Security :: INHERIT_ONLY_ACE | Chef :: ReservedNames :: Win32 :: API :: Security :: CONTAINER_INHERIT_ACE | Chef :: ReservedNames :: Win32 :: API :: Security :: OBJECT_INHERIT_ACE ) ) ] end
Set up the context for security tests
Set up the context for security tests
sid
<not_specific>
expected_perms
<not_specific>