Commit Graph

102 Commits

Author SHA1 Message Date
Robert Shearman 1408169387 Implement PrivilegeCheck. 2005-04-22 21:17:42 +00:00
Alexandre Julliard b965457c4a Get rid of the remaining calls to strncpyW, and remove that function
from wine/unicode.h.
2005-04-21 17:18:50 +00:00
Francois Gouget 3ef8c51c8a Tweak the API documentation to silence winapi_check warnings. 2005-04-20 15:18:42 +00:00
Steven Edwards 4a26da2142 Partially implement CreateProcessAsUser. 2005-04-13 11:02:59 +00:00
Hans Leidekker 4ead2b4cb7 Implement GetNamedSecurityInfo. 2005-04-11 14:25:41 +00:00
Stefan Leichter 25102d6b25 Fix GetFileSecurityW for not existing directories/files. 2005-03-29 11:31:18 +00:00
Jakob Eriksson 461c830745 Eliminate HeapAlloc casts. 2005-03-22 18:26:06 +00:00
Vincent Béron 1e365f7791 Fixed some calling conventions. 2005-03-21 10:32:45 +00:00
Jason Edmeades de70942e6d Add stub for SetSecurityInfo. 2005-03-07 11:00:24 +00:00
Troy Rollo bf6d5fc66b Make GetFileSecurityW return a standard SECURITY_DESCRIPTOR instead of
an uninitialised (and invalid) one.
2005-03-05 10:46:34 +00:00
Robert Shearman b0f02b28b9 - Implement AdjustTokenPrivileges, DuplicateTokenEx and
GetTokenInformation (for the TokenPrivileges case).
- Return STATUS_NO_TOKEN for OpenThreadToken when there is no token
  set for the thread.
2005-02-11 11:52:06 +00:00
Hans Leidekker 0cc2031409 Stub implementations for GetKernelObjectSecurity,
GetPrivateObjectSecurity, GetServiceKeyName{A,W},
ImpersonateNamedPipeClient, InitiateSystemShutdown{A,W},
IsTokenRestricted, LogonUser{A,W}, LookupAccountNameW,
LookupPrivilegeDisplayName{A,W}, MapGenericMask,
ObjectCloseAuditAlarm{A,W}, ObjectOpenAuditAlarm{A,W},
ObjectPrivilegeAuditAlarm{A,W}, PrivilegedServiceAuditAlarm{A,W},
QueryServiceLockStatus{A,W}, SetAclInformation,
SetPrivateObjectSecurity, SetSecurityDescriptorControl,
SetServiceBits, LsaSetInformationPolicy, LsaLookupNames,
LsaEnumerateTrustedDomains.
2005-01-03 17:12:51 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Alexandre Julliard 1d36d12917 Fixed prototypes of a couple of ntdll functions.
Replaced the CallWin32ToNt macro by a proper function.
PBOOL cannot be cast to PBOOLEAN, we need to use an intermediate
variable.
2004-12-22 15:31:16 +00:00
Hans Leidekker 49f7f6c208 Stub implementations for AdjustTokenGroups, AreAllAccessesGranted,
CreatePrivateObjectSecurity, CreateProcessAsUser{A,W},
DestroyPrivateObjectSecurity, DuplicateToken{,Ex},
EnumDependentServices{A,W}, GetEffectiveRightsFromAcl{A,W},
ConvertStringSecurityDescriptorToSecurityDescriptorA. Implementations
for BuildExplicitAccessWithName{A,W},
BuildTrusteeWithObjectsAndName{A,W},
BuildTrusteeWithObjectsAndSid{A,W}.
Correct prototype for InitializeAcl, RtlCopySid and RtlGetAce.
Use the CallWin32ToNt macro only with functions that return an
NTSTATUS.
2004-12-21 16:16:10 +00:00
Mike McCormack 0128a849b1 Stub implementations for Lsa(Store/Retrieve)PrivateData. 2004-12-08 14:02:26 +00:00
Mike McCormack 4bda758157 Stub implementations for DecryptFile, EncryptFile and
GetServiceDisplayName.
2004-12-06 16:17:08 +00:00
Juan Lang 0fca5acba8 - implement LookupPrivilegeName
- correct LookupPrivilegeValue (had a buffer overrun and sometimes
  returned incorrect LUIDs for well-known values)
- make AllocateLocallyUniqueId less obviously incorrect
- add a bunch of test cases
2004-11-04 04:52:17 +00:00
Juan Lang 531be0b887 Update comment for LsaOpenPolicy. 2004-10-25 21:43:47 +00:00
Juan Lang bd0e74253c - correct ConvertStringSidToSidW and ConvertSidToStringSidW, with
tests
- add ConvertStringSidToSidA
- add missing exports for ConvertStringSidToSidA/W
2004-09-16 20:27:52 +00:00
Wolfgang Schwotzer 9c4890042d LookupAccountNameA stub always returns a valid SID. 2004-09-07 20:41:35 +00:00
Evan Deaubl 18e195a89b Added GetSecurityInfo stub. 2004-08-26 00:29:06 +00:00
Mike McCormack fd4675c501 Make SetTokenInformation call NtSetInformationToken. 2004-08-25 17:30:46 +00:00
Mike McCormack e27ae38f01 Fix BuildTrusteeWithSid, implement and test BuildTrusteeWithName. 2004-08-19 19:01:12 +00:00
Mike McCormack 93eeaa417d Implemented Get/SetFileSecurity A->W. 2004-08-16 23:18:23 +00:00
Mike McCormack 985646f07a Declaration, implemention and test for BuildTrusteeWithSid. 2004-08-16 21:07:50 +00:00
Mike McCormack 55257303d7 Move declaration of LSA* structs to ntsecapi.h. 2004-08-16 19:47:21 +00:00
Francois Gouget 870f55fefc Fix the PSID and PSECURITY_DESCRIPTOR types.
Add PISID and PISECURITY_DESCRIPTOR.
2004-08-13 23:55:43 +00:00
Mike McCormack edf55ec7d9 Implement SetThreadToken using NtSetInformationThread. 2004-08-13 23:20:27 +00:00
Mike McCormack f8167f01bc Implement A->W call for SetNamedSecurityInfo. 2004-08-09 22:55:47 +00:00
Mike McCormack d161a8f64e Fix definition of LookupPrivilegeNameW and declare it. 2004-08-09 19:46:15 +00:00
Mike McCormack be303074d6 Implemented ConvertSidToStringSidA/W. 2004-08-09 18:47:06 +00:00
Mike McCormack 2d86d17f2f Implement A->W call for GetNamedSecurityInfo. 2004-08-06 17:31:17 +00:00
Ge van Geldorp 606cc0acb6 Add missing privilege names. 2004-07-07 00:47:50 +00:00
William Lahti d5a31871cd Implemented AreAnyAccessesGranted. 2004-05-25 00:22:42 +00:00
Francois Gouget 0345908a27 Assorted spelling fixes. 2004-04-28 00:24:44 +00:00
Jon Griffiths 50ce0844ba Documentation fixes. 2004-04-23 21:32:34 +00:00
Francois Gouget 52c0832161 Make Unicode strings static const. 2004-04-20 01:12:17 +00:00
Francois Gouget 6b6ed724ae Add missing '\n's to debug traces. 2004-01-27 00:01:43 +00:00
Juan Lang c02488b5f0 Read the Policy{Account,Primary}DomainInformation from the registry,
rather than hardcoding it to "DOMAIN".
2003-12-30 19:21:11 +00:00
Ulrich Czekalla fd5e811c4e Added stubs for AccessCheckByType, AddAuditAccessAce,
GetNamedSecurityInfoA, GetNamedSecurityInfoW.
Implemented ConvertStringSecurityDescriptorToSecurityDescriptorW,
DeleteAce, MakeAbsoluteSD, GetAclInformation, ConvertStringSidToSidW,
RtlDeleteAce, RtlQueryInformationAcl.
2003-11-11 22:03:24 +00:00
Jon Griffiths 4c1fa161a3 Documentation updates. 2003-10-01 03:20:21 +00:00
Mike McCormack de047225bb Created stub functions for advapi32.GetExplicitEntriesFromAclA/W(). 2003-09-17 20:04:45 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Mike McCormack d0c2c6df72 Stubs for advapi32 functions InitiateSystemShutdownEx, SetEntriesInAcl
and SetNamedSecurityInfo.
2003-08-12 18:53:14 +00:00
Mike McCormack 49b408b192 Stubs for BuildTrusteeWithSid(A/W). 2003-08-11 18:41:28 +00:00
Mike McCormack 133ba9f3cd Implemented LookupPrivilegeValueA/W. 2003-07-24 00:01:16 +00:00
736ff98510 Added AddAccessAllowdAceEx, AddAccessDeniedAceEx, GetAclInformation. 2003-06-16 19:44:06 +00:00
Mike McCormack 493d89d888 Stubs for AccessCheckAndAuditAlarmA/W. 2003-05-11 02:37:11 +00:00
Robert Shearman f0025e2adc - Implemented RtlAddAccessAllowedAce, RtlAddAccessDeniedAce,
RtlAddAce, RtlValidAcl.
- Added the corresponding functions in advapi32.
- Grouped the ACL functions in advapi32.
2003-05-01 00:29:26 +00:00