Commit Graph

825 Commits

Author SHA1 Message Date
Alistair Leslie-Hughes 4bbbc261d1 ntdll: Support TokenLogonSid in NtQueryInformationToken.
Based on a patch by Andrew Wesie.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-07 19:38:29 +01:00
Andrew Eikum 1f88b90b74 advapi32: Implement NotifyServiceStatusChange.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 18:28:38 +01:00
Matteo Bruni 9ccce0ce64 advapi32/tests: Fix a couple of leaks (Valgrind).
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-11 19:11:33 +01:00
Matteo Bruni f6f5c96677 advapi32/tests: Fully initialize ACLs (Valgrind).
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-10 23:59:44 +01:00
André Hentschel ab2ae76ea4 advapi32/tests: Don't cast return value from HeapAlloc.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-02 15:52:22 +01:00
Zebediah Figura 0c5381c6ce advapi32/tests: Skip tests modifying HKLM if limited.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-02 13:25:20 +01:00
Hans Leidekker 84a9503298 advapi32/tests: Add tests for MakeSelfRelativeSD.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-24 16:48:02 +01:00
Hans Leidekker 1d03ba7611 advapi32: Fix parsing empty DACL/SACL security descriptor strings.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-17 17:39:04 +01:00
Michael Müller 07b629e8e4 advapi32: Implement GetExplicitEntriesFromAclW.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 21:20:49 +01:00
Gerald Pfeifer 50fe77a358 advapi32/tests: Fix two clang warnings in test_LookupAccount SID_NAME_USE being out of range.
Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-06 21:26:39 +01:00
Nikolay Sivov 2c8427e0dc advapi32: Partially implement LsaLookupPrivilegeName().
Based on patch by Michael Müller.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-03 09:53:13 +01:00
Nikolay Sivov 7112b60c83 advapi32/tests: Merge some test code.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-03 09:52:42 +01:00
Nikolay Sivov 90f94eae1d advapi32/tests: Remove dynamic function binding from LSA tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-03 09:52:40 +01:00
Bernhard Übelacker de7220e255 advapi32: Fix ChangeServiceConfig2 when given a null description.
Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-12 19:41:06 +02:00
Alistair Leslie-Hughes 2ae0574d8e advapi32/tests: Added GetTokenInformation TokenLogonSid test.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-28 17:54:35 +02:00
Nikolay Sivov a0ac14456b advapi32/tests: Fix a sid string leak (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-11 20:55:56 +02:00
Nikolay Sivov df522c5a06 advapi32/tests: Statically link to ConvertSidToStringSidA().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-11 20:55:54 +02:00
Francois Gouget 6e082ea86a advapi32/tests: A couple of spelling fixes in ok() messages.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-06 18:49:38 +02:00
Matteo Bruni 894837168c advapi32/tests: Add a token mandatory label test.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-19 09:50:35 +02:00
Michael Müller a78d419420 server: Assign a default label to all tokens.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-19 09:50:32 +02:00
Michael Müller 08f3fef34c advapi32/tests: Show that child processes do not inherit mandatory labels.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-19 09:50:25 +02:00
Michael Müller 7e68ccff87 advapi32/tests: Show that tokens do not inherit the DACL while creating child processes.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-19 09:50:24 +02:00
Michael Müller 4bd10fbd1a advapi32/tests: Show that tokens do not inherit security descriptors during duplication.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-19 09:50:22 +02:00
Thomas Faber c7f0777fc5 advapi32/tests: Properly restore privileges in test_AdjustTokenPrivileges.
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-15 21:54:40 +02:00
Michael Müller 3ef07ac9dd advapi32/tests: Add basic tests for token security descriptors.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-15 11:12:32 +02:00
Michael Müller 187b53e5a5 server: Do not set SE_{D, S}ACL_PRESENT if no {D, S}ACL was set.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-15 11:09:16 +02:00
Michael Müller af2d01c2fa server: Implement changing the label of a security descriptor.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-15 11:08:59 +02:00
Michael Müller 2ebe679638 server: Implement querying the security label of a security descriptor.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-15 10:50:54 +02:00
Hermès Bélusca-Maïto 2cd8eb3989 advapi32/tests: Fix build with MSVC.
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-13 20:56:19 +02:00
Matteo Bruni 2821685164 advapi32/tests: Allow an additional result on newer Win10.
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-13 16:00:45 +02:00
Vitaly Lipatov 7cbaf1f56f advapi32/tests: Add test prototype for RegQueryValueEx HKEY_PERFORMANCE_DATA.
Signed-off-by: Vitaly Lipatov <lav@etersoft.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-29 17:17:13 +02:00
Hans Leidekker 5786705ab8 advapi32/tests: Initialize input parameters (Valgrind).
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 20:52:14 +01:00
Hans Leidekker fbec6c540a advapi32/tests: Fix a memory leak (Valgrind).
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 20:52:08 +01:00
Francois Gouget 2f9941e224 advapi32/tests: Trace the display name if CreateService() unexpectedly succeeds.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-16 19:54:03 +01:00
Michael Müller cca8931483 advapi32/tests: Add tests for AddMandatoryAce.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-17 20:54:04 +01:00
Michael Müller 0e49e0541f server: Give all access rights when opening an object with MAXIMUM_ALLOWED.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 11:37:02 +01:00
Sebastian Lackner 0e42bce0b6 server: Fix handling of MAXIMUM_ALLOWED in token_access_check.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-03 19:05:10 +01:00
Owen Rudge bbe6233734 advapi32/tests: Add test of LsaLookupSids buffer behaviour.
Signed-off-by: Owen Rudge <orudge@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-03 19:05:09 +01:00
Hans Leidekker 57c4d280f8 advapi32/tests: Skip StartTrace tests if the user doesn't have admin rights.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-17 12:25:04 +01:00
Huw Davies e3c8794dfc advapi32/tests: Update ACE registry tests with Windows 10 values.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-13 14:51:06 +01:00
Zebediah Figura 1bcd38f788 advapi32: Add tests for StartTrace().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-20 19:58:53 +01:00
Jacek Caban 2f1d068abd ntdll: Added TokenIsAppContainer semi-stub implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-15 16:08:16 -06:00
Jacek Caban bf1537da8b advapi32/tests: Added TokenIsAppContainer tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-15 16:08:10 -06:00
Alistair Leslie-Hughes d0350eef1e advapi32/test: Stop crash when ReadEventLog returns an unexpected error.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-09 19:06:26 +01:00
André Hentschel 49f2d424ac advapi32/tests: Don't crash the service test on wow64 Wine.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-03 20:43:00 +02:00
André Hentschel 4464793e60 advapi32/tests: Allow Win8+ flags for Admins ACE.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-23 12:04:12 +09:00
André Hentschel 9db9c9ef5a advapi32/tests: Allow MACHINE\Software to be owned by local system.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-23 12:04:10 +09:00
Francois Gouget 0beaaa6bc2 advapi32/tests: Some spelling fixes for the security ok() messages.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-19 14:56:58 +09:00
Sebastian Lackner df77e490d8 advapi32: Fix return value of RegNotifyChangeKeyValue for pending events.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-06 00:31:20 +09:00
Alexandre Julliard 303daeef58 advapi32: Fix null termination in RegQueryInfoKeyA.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-15 14:10:41 +09:00