Home
last modified time | relevance | path

Searched refs:SecurityAccessMode (Results 1 – 8 of 8) sorted by relevance

/external/cronet/base/win/
Daccess_control_list_unittest.cc143 ExplicitAccessEntry ace(sid, SecurityAccessMode::kGrant, FakeAccess, in TEST()
146 EXPECT_EQ(SecurityAccessMode::kGrant, ace.mode()); in TEST()
156 SecurityAccessMode::kRevoke, ~FakeAccess, in TEST()
159 EXPECT_EQ(SecurityAccessMode::kRevoke, ace_known.mode()); in TEST()
169 ace_list.emplace_back(Sid(WellKnownSid::kWorld), SecurityAccessMode::kGrant, in TEST()
174 SecurityAccessMode::kDeny, EVENT_MODIFY_STATE, in TEST()
178 ace_list.emplace_back(Sid(WellKnownSid::kWorld), SecurityAccessMode::kRevoke, in TEST()
190 SecurityAccessMode::kGrant, READ_CONTROL, 0)); in TEST()
193 SecurityAccessMode::kGrant, EVENT_MODIFY_STATE, 0)); in TEST()
195 EXPECT_TRUE(acl.SetEntry(Sid(WellKnownSid::kWorld), SecurityAccessMode::kSet, in TEST()
[all …]
Daccess_control_list.h21 enum class SecurityAccessMode { kGrant, kSet, kDeny, kRevoke }; enum
27 SecurityAccessMode mode,
31 SecurityAccessMode mode,
41 SecurityAccessMode mode() const { return mode_; } in mode()
49 SecurityAccessMode mode_;
92 SecurityAccessMode mode,
Daccess_control_list.cc41 ACCESS_MODE ConvertAccessMode(SecurityAccessMode access_mode) { in ConvertAccessMode()
43 case SecurityAccessMode::kGrant: in ConvertAccessMode()
45 case SecurityAccessMode::kSet: in ConvertAccessMode()
47 case SecurityAccessMode::kDeny: in ConvertAccessMode()
49 case SecurityAccessMode::kRevoke: in ConvertAccessMode()
86 SecurityAccessMode mode, in ExplicitAccessEntry()
95 SecurityAccessMode mode, in ExplicitAccessEntry()
159 SecurityAccessMode mode, in SetEntry()
Dsecurity_util.cc28 SecurityAccessMode access_mode) { in AddACEToPath()
73 SecurityAccessMode::kGrant); in GrantAccessToPath()
82 SecurityAccessMode::kDeny); in DenyAccessToPath()
Dsecurity_descriptor_unittest.cc363 ace_list.emplace_back(Sid(WellKnownSid::kWorld), SecurityAccessMode::kGrant, in TEST()
368 SecurityAccessMode::kDeny, EVENT_MODIFY_STATE, 0); in TEST()
371 ace_list.emplace_back(Sid(WellKnownSid::kWorld), SecurityAccessMode::kRevoke, in TEST()
380 SecurityAccessMode::kGrant, READ_CONTROL, 0)); in TEST()
383 SecurityAccessMode::kGrant, EVENT_MODIFY_STATE, in TEST()
387 SecurityAccessMode::kSet, EVENT_ALL_ACCESS, 0)); in TEST()
390 SecurityAccessMode::kDeny, EVENT_MODIFY_STATE, in TEST()
394 SecurityAccessMode::kRevoke, EVENT_ALL_ACCESS, in TEST()
398 EXPECT_TRUE(sd.SetDaclEntry(WellKnownSid::kWorld, SecurityAccessMode::kGrant, in TEST()
434 SecurityAccessMode::kGrant, FILE_ALL_ACCESS, 0)); in TEST()
Dsecurity_descriptor.h168 SecurityAccessMode mode,
181 SecurityAccessMode mode,
Dsecurity_descriptor.cc373 SecurityAccessMode mode, in SetDaclEntry()
383 SecurityAccessMode mode, in SetDaclEntry()
Daccess_token_unittest.cc687 ASSERT_TRUE(default_dacl.SetEntry(world_sid, SecurityAccessMode::kGrant, in TEST()