Home
last modified time | relevance | path

Searched refs:WellKnownSid (Results 1 – 13 of 13) sorted by relevance

/external/cronet/base/win/
Dsid.cc141 Sid Sid::FromKnownSid(WellKnownSid type) { in FromKnownSid()
143 case WellKnownSid::kNull: in FromKnownSid()
146 case WellKnownSid::kWorld: in FromKnownSid()
149 case WellKnownSid::kCreatorOwner: in FromKnownSid()
152 case WellKnownSid::kCreatorOwnerRights: in FromKnownSid()
155 case WellKnownSid::kNetwork: in FromKnownSid()
157 case WellKnownSid::kBatch: in FromKnownSid()
159 case WellKnownSid::kInteractive: in FromKnownSid()
161 case WellKnownSid::kService: in FromKnownSid()
163 case WellKnownSid::kAnonymous: in FromKnownSid()
[all …]
Dsid_unittest.cc107 WellKnownSid sid;
181 {WellKnownSid::kNull, ::WinNullSid}, in TEST()
182 {WellKnownSid::kWorld, ::WinWorldSid}, in TEST()
183 {WellKnownSid::kCreatorOwner, ::WinCreatorOwnerSid}, in TEST()
184 {WellKnownSid::kNetwork, ::WinNetworkSid}, in TEST()
185 {WellKnownSid::kBatch, ::WinBatchSid}, in TEST()
186 {WellKnownSid::kInteractive, ::WinInteractiveSid}, in TEST()
187 {WellKnownSid::kService, ::WinServiceSid}, in TEST()
188 {WellKnownSid::kAnonymous, ::WinAnonymousSid}, in TEST()
189 {WellKnownSid::kSelf, ::WinSelfSid}, in TEST()
[all …]
Daccess_control_list_unittest.cc142 Sid sid(WellKnownSid::kWorld); in TEST()
155 ExplicitAccessEntry ace_known(WellKnownSid::kSelf, in TEST()
158 EXPECT_EQ(Sid(WellKnownSid::kSelf), ace_known.sid()); in TEST()
169 ace_list.emplace_back(Sid(WellKnownSid::kWorld), SecurityAccessMode::kGrant, in TEST()
173 ace_list.emplace_back(Sid(WellKnownSid::kLocalSystem), in TEST()
178 ace_list.emplace_back(Sid(WellKnownSid::kWorld), SecurityAccessMode::kRevoke, in TEST()
189 EXPECT_TRUE(acl.SetEntry(Sid(WellKnownSid::kWorld), in TEST()
192 EXPECT_TRUE(acl.SetEntry(Sid(WellKnownSid::kWorld), in TEST()
195 EXPECT_TRUE(acl.SetEntry(Sid(WellKnownSid::kWorld), SecurityAccessMode::kSet, in TEST()
198 EXPECT_TRUE(acl.SetEntry(Sid(WellKnownSid::kLocalSystem), in TEST()
[all …]
Dsecurity_descriptor_unittest.cc106 void ExpectSid(const absl::optional<Sid>& sid, WellKnownSid known_sid) { in ExpectSid()
179 sd.set_owner(Sid(WellKnownSid::kBuiltinUsers)); in TEST()
180 ExpectSid(sd.owner(), WellKnownSid::kBuiltinUsers); in TEST()
183 sd.set_group(Sid(WellKnownSid::kLocalSystem)); in TEST()
184 ExpectSid(sd.group(), WellKnownSid::kLocalSystem); in TEST()
207 ExpectSid(sd->owner(), WellKnownSid::kBuiltinUsers); in TEST()
210 ExpectSid(sd->group(), WellKnownSid::kLocalSystem); in TEST()
231 ExpectSid(sd->owner(), WellKnownSid::kBuiltinUsers); in TEST()
232 ExpectSid(sd->group(), WellKnownSid::kLocalSystem); in TEST()
263 ExpectSid(sd->owner(), WellKnownSid::kBuiltinUsers); in TEST()
[all …]
Dsid.h34 enum class WellKnownSid { enum
75 static Sid FromKnownSid(WellKnownSid type);
103 const std::vector<WellKnownSid>& known_sids);
106 explicit Sid(WellKnownSid known_sid);
Dsecurity_util_unittest.cc238 Sid::FromKnownSidVector({WellKnownSid::kNull, WellKnownSid::kWorld}); in TEST()
250 Sid::FromKnownSidVector({WellKnownSid::kNull, WellKnownSid::kWorld}); in TEST()
257 {WellKnownSid::kCreatorOwner, WellKnownSid::kNetwork}); in TEST()
Daccess_control_list.h30 ExplicitAccessEntry(WellKnownSid known_sid,
Daccess_token_unittest.cc274 AccessToken::Group group(Sid(WellKnownSid::kWorld), attributes); in CheckAccessTokenGroup()
610 CheckError(token->IsMember(WellKnownSid::kWorld), in TEST()
617 EXPECT_TRUE(imp_token->IsMember(WellKnownSid::kWorld)); in TEST()
618 EXPECT_FALSE(imp_token->IsMember(WellKnownSid::kNull)); in TEST()
672 EXPECT_EQ(Sid(WellKnownSid::kAnonymous), anon_token->User()); in TEST()
686 Sid world_sid(WellKnownSid::kWorld); in TEST()
Daccess_token.h242 bool IsMember(WellKnownSid known_sid) const;
Dsecurity_descriptor.h180 bool SetDaclEntry(WellKnownSid known_sid,
Daccess_control_list.cc94 ExplicitAccessEntry::ExplicitAccessEntry(WellKnownSid known_sid, in ExplicitAccessEntry()
Dsecurity_descriptor.cc382 bool SecurityDescriptor::SetDaclEntry(WellKnownSid known_sid, in SetDaclEntry()
Daccess_token.cc487 bool AccessToken::IsMember(WellKnownSid known_sid) const { in IsMember()