Searched refs:restricted_token (Results 1 – 4 of 4) sorted by relevance
45 ATL::CAccessToken restricted_token; in TEST() local46 restricted_token.Attach(restricted_token_handle); in TEST()52 ASSERT_TRUE(restricted_token.GetUser(&sid_user_restricted)); in TEST()54 ASSERT_TRUE(restricted_token.GetOwner(&sid_owner_restricted)); in TEST()87 ATL::CAccessToken restricted_token; in TEST() local88 restricted_token.Attach(restricted_token_handle); in TEST()92 ASSERT_TRUE(restricted_token.GetPrimaryGroup(&sid_restricted)); in TEST()107 HANDLE restricted_token; in TEST() local108 ASSERT_EQ(ERROR_SUCCESS, token.GetRestrictedTokenHandle(&restricted_token)); in TEST()110 ASSERT_TRUE(::IsTokenRestricted(restricted_token)); in TEST()[all …]
29 RestrictedToken restricted_token; in CreateRestrictedToken() local30 restricted_token.Init(NULL); // Initialized with the current process token in CreateRestrictedToken()48 unsigned err_code = restricted_token.AddRestrictingSidAllSids(); in CreateRestrictedToken()68 restricted_token.AddRestrictingSid(WinBuiltinUsersSid); in CreateRestrictedToken()69 restricted_token.AddRestrictingSid(WinWorldSid); in CreateRestrictedToken()70 restricted_token.AddRestrictingSid(WinRestrictedCodeSid); in CreateRestrictedToken()71 restricted_token.AddRestrictingSidCurrentUser(); in CreateRestrictedToken()72 restricted_token.AddRestrictingSidLogonSession(); in CreateRestrictedToken()80 restricted_token.AddRestrictingSid(WinBuiltinUsersSid); in CreateRestrictedToken()81 restricted_token.AddRestrictingSid(WinWorldSid); in CreateRestrictedToken()[all …]
84 sandbox::RestrictedToken restricted_token; in CreateRestrictedToken() local85 if (restricted_token.Init(token) != ERROR_SUCCESS) in CreateRestrictedToken()89 if (restricted_token.DeleteAllPrivileges(NULL) != ERROR_SUCCESS) in CreateRestrictedToken()94 if (restricted_token.SetIntegrityLevel(sandbox::INTEGRITY_LEVEL_LOW) in CreateRestrictedToken()101 if (restricted_token.GetRestrictedTokenHandle(&temp_handle) == in CreateRestrictedToken()
93 'src/restricted_token.cc',94 'src/restricted_token.h',