Home
last modified time | relevance | path

Searched refs:restricted_token (Results 1 – 4 of 4) sorted by relevance

/external/chromium_org/sandbox/win/src/
Drestricted_token_unittest.cc45 ATL::CAccessToken restricted_token; in TEST() local
46 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() local
88 restricted_token.Attach(restricted_token_handle); in TEST()
92 ASSERT_TRUE(restricted_token.GetPrimaryGroup(&sid_restricted)); in TEST()
107 HANDLE restricted_token; in TEST() local
108 ASSERT_EQ(ERROR_SUCCESS, token.GetRestrictedTokenHandle(&restricted_token)); in TEST()
110 ASSERT_TRUE(::IsTokenRestricted(restricted_token)); in TEST()
[all …]
Drestricted_token_utils.cc29 RestrictedToken restricted_token; in CreateRestrictedToken() local
30 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 …]
/external/chromium_org/remoting/host/win/
Dunprivileged_process_delegate.cc84 sandbox::RestrictedToken restricted_token; in CreateRestrictedToken() local
85 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()
/external/chromium_org/sandbox/win/
Dsandbox_win.gypi93 'src/restricted_token.cc',
94 'src/restricted_token.h',