HomeSort by relevance Sort by last modified time
    Searched refs:Sid (Results 1 - 25 of 34) sorted by null

1 2

  /external/chromium_org/sandbox/win/src/
sid.h 13 class Sid {
15 // Constructors initializing the object with the SID passed.
17 Sid(const SID *sid);
18 Sid(WELL_KNOWN_SID_TYPE type);
21 const SID *GetPSID() const;
sid.cc 5 #include "sandbox/win/src/sid.h"
11 Sid::Sid(const SID *sid) {
12 ::CopySid(SECURITY_MAX_SID_SIZE, sid_, const_cast<SID*>(sid));
15 Sid::Sid(WELL_KNOWN_SID_TYPE type) {
22 const SID *Sid::GetPSID() const
    [all...]
sid_unittest.cc 5 // This file contains unit tests for the sid class.
11 #include "sandbox/win/src/sid.h"
18 BOOL EqualSid(const SID *sid1, const SID *sid2) {
19 return ::EqualSid(const_cast<SID*>(sid1), const_cast<SID*>(sid2));
22 // Tests the creation if a Sid
25 SID *sid_world_pointer = const_cast<SID*>(sid_world.GetPSID());
27 // Check the SID* constructo
    [all...]
restricted_token.h 15 #include "sandbox/win/src/sid.h"
17 // Flags present in the Group SID list. These 2 flags are new in Windows Vista
91 // std::vector<Sid> sid_exceptions;
95 // Note: A Sid marked for Deny Only in a token cannot be used to grant
97 unsigned AddAllSidsForDenyOnly(std::vector<Sid> *exceptions);
99 // Adds a user or group SID for Deny Only in the restricted token.
100 // Parameter: sid is the SID to add in the Deny Only list.
105 unsigned AddSidForDenyOnly(const Sid &sid);
    [all...]
acl.h 12 #include "sandbox/win/src/sid.h"
21 // Appends an ACE represented by |sid|, |access_mode|, and |access| to
24 bool AddSidToDacl(const Sid& sid, ACL* old_dacl, ACCESS_MODE access_mode,
27 // Adds and ACE represented by |sid| and |access| to the default dacl present
29 bool AddSidToDefaultDacl(HANDLE token, const Sid& sid, ACCESS_MASK access);
31 // Adds an ACE represented by the user sid and |access| to the default dacl
38 const Sid& sid, ACCESS_MODE access_mode
    [all...]
restricted_token.cc 61 deny_only_array[i].Sid =
62 const_cast<SID*>(sids_for_deny_only_[i].GetPSID());
72 sids_to_restrict_array[i].Sid =
73 const_cast<SID*>(sids_to_restrict_[i].GetPSID());
189 unsigned RestrictedToken::AddAllSidsForDenyOnly(std::vector<Sid> *exceptions) {
223 if (::EqualSid(const_cast<SID*>((*exceptions)[j].GetPSID()),
224 token_groups->Groups[i].Sid)) {
232 reinterpret_cast<SID*>(token_groups->Groups[i].Sid));
242 unsigned RestrictedToken::AddSidForDenyOnly(const Sid &sid)
    [all...]
acl.cc 40 bool AddSidToDacl(const Sid& sid, ACL* old_dacl, ACCESS_MODE access_mode,
51 const_cast<SID*>(sid.GetPSID()));
59 bool AddSidToDefaultDacl(HANDLE token, const Sid& sid, ACCESS_MASK access) {
68 if (!AddSidToDacl(sid, default_dacl->DefaultDacl, GRANT_ACCESS, access,
91 reinterpret_cast<SID*>(token_user->User.Sid),
96 const Sid& sid, ACCESS_MODE access_mode
    [all...]
app_container.cc 17 // Converts the passed in sid string to a PSID that must be relased with
19 PSID ConvertSid(const base::string16& sid) {
21 if (!ConvertStringSidToSid(sid.c_str(), &local_sid))
47 LocalFree(attributes_[i].Sid);
62 sid_and_attributes.Sid = ConvertSid(capabilities[i]);
63 if (!sid_and_attributes.Sid)
97 ResultCode CreateAppContainer(const base::string16& sid,
100 if (!ConvertStringSidToSid(sid.c_str(), &local_sid))
103 typedef HRESULT (WINAPI* AppContainerRegisterSidPtr)(PSID sid,
125 ResultCode DeleteAppContainer(const base::string16& sid) {
    [all...]
integrity_level_test.cc 37 BOOL is_low_sid = ::EqualSid(label->Label.Sid, sid_low);
window.cc 12 #include "sandbox/win/src/sid.h"
110 AddKnownSidToObject(*desktop, SE_WINDOW_OBJECT, Sid(WinRestrictedCodeSid),
restricted_token_utils.cc 18 #include "sandbox/win/src/sid.h"
33 std::vector<Sid> sid_exceptions;
85 // Unfortunately, on vista, it needs the current logon sid
245 sddl += integrity_level_sid; // Trustee Sid.
314 label.Label.Sid = integrity_sid;
restricted_token_unittest.cc 12 #include "sandbox/win/src/sid.h"
161 ATL::CSid sid; local
163 dacl.GetAclEntry(i, &sid, &mask);
164 if (sid == ATL::Sids::RestrictedCode() && mask == GENERIC_ALL) {
179 ASSERT_EQ(ERROR_SUCCESS, token.AddSidForDenyOnly(Sid(WinWorldSid)));
234 std::vector<Sid> sids_exception;
235 sids_exception.push_back(Sid(WinWorldSid));
406 // Checks if a sid is in the restricting list of the restricted token.
410 ATL::CSid sid, int count) {
432 if (sids[i] == sid) {
    [all...]
  /prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/
sddl.h 128 WINADVAPI WINBOOL WINAPI ConvertSidToStringSidA(PSID Sid,LPSTR *StringSid);
129 WINADVAPI WINBOOL WINAPI ConvertSidToStringSidW(PSID Sid,LPWSTR *StringSid);
130 WINADVAPI WINBOOL WINAPI ConvertStringSidToSidA(LPCSTR StringSid,PSID *Sid);
131 WINADVAPI WINBOOL WINAPI ConvertStringSidToSidW(LPCWSTR StringSid,PSID *Sid);
evntcons.h 128 PSID Sid,
ntsecapi.h 165 PSID Sid;
181 PSID Sid;
227 PSID Sid;
235 PSID Sid;
347 PSID Sid;
356 PSID Sid;
413 PSID Sid;
462 PSID Sid;
476 PSID Sid;
    [all...]