Searched refs:WellKnownSid (Results 1 – 13 of 13) sorted by relevance
/external/cronet/base/win/ |
D | sid.cc | 141 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 …]
|
D | sid_unittest.cc | 107 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 …]
|
D | access_control_list_unittest.cc | 142 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 …]
|
D | security_descriptor_unittest.cc | 106 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 …]
|
D | sid.h | 34 enum class WellKnownSid { enum 75 static Sid FromKnownSid(WellKnownSid type); 103 const std::vector<WellKnownSid>& known_sids); 106 explicit Sid(WellKnownSid known_sid);
|
D | security_util_unittest.cc | 238 Sid::FromKnownSidVector({WellKnownSid::kNull, WellKnownSid::kWorld}); in TEST() 250 Sid::FromKnownSidVector({WellKnownSid::kNull, WellKnownSid::kWorld}); in TEST() 257 {WellKnownSid::kCreatorOwner, WellKnownSid::kNetwork}); in TEST()
|
D | access_control_list.h | 30 ExplicitAccessEntry(WellKnownSid known_sid,
|
D | access_token_unittest.cc | 274 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()
|
D | access_token.h | 242 bool IsMember(WellKnownSid known_sid) const;
|
D | security_descriptor.h | 180 bool SetDaclEntry(WellKnownSid known_sid,
|
D | access_control_list.cc | 94 ExplicitAccessEntry::ExplicitAccessEntry(WellKnownSid known_sid, in ExplicitAccessEntry()
|
D | security_descriptor.cc | 382 bool SecurityDescriptor::SetDaclEntry(WellKnownSid known_sid, in SetDaclEntry()
|
D | access_token.cc | 487 bool AccessToken::IsMember(WellKnownSid known_sid) const { in IsMember()
|