Commit Graph

846 Commits

Author SHA1 Message Date
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
Jacek Caban e625e86ee1 kernel32: Don't set unconditionally SECTION_QUERY flag in OpenFileMapping.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-14 13:54:52 +09:00
Sebastian Lackner 2ddcd97bb1 advapi32: Fix RegDeleteTreeW when an empty string is passed.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-02 23:29:26 +09:00
Hugh McMaster 50c5a2ce2e advapi32/tests: Add tests for deleting the default value.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 21:35:40 +09:00
Hugh McMaster 80383dcf39 advapi32/tests: Fix typos.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 21:35:24 +09:00
Frédéric Delanoy 1bccc8b027 advapi32/tests: Use todo_wine_if() in tests.
Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-29 20:05:01 +09:00
Michael Müller 6b7c576bc5 advapi32: Implement RegCopyTreeA/W.
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>
2016-02-29 20:05:01 +09:00
Sebastian Lackner 8358fd1c26 advapi32/tests: Add tests for RegCopyTree.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-29 20:05:00 +09:00
Sebastian Lackner ae0dc70bb0 advapi32/tests: Improve RegDeleteTree tests.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-29 20:05:00 +09:00
Qian Hong 954ca154ac advapi32/tests: Add more invalid parameter tests for AccessCheck.
Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 19:37:41 +09:00
Qian Hong 86c4790721 advapi32/tests: Add invalid parameter tests for AccessCheck.
Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 23:26:30 +09:00
André Hentschel 4684dc2bfb advapi32/tests: Use todo_wine_if() in tests.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 12:09:39 +09:00
Nikolay Sivov 2abec634ac advapi32/tests: Simplify tests using todo_wine_if().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 12:17:44 +09:00
Michael Müller c937cf6ad2 advapi32/tests: Add tests for Win8 pseudo handles.
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>
2016-02-11 12:15:57 +09:00
Francois Gouget 7371c44336 advapi32/tests: Trace the SIDs if they are not as expected.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-28 21:27:34 +09:00
Nikolay Sivov 62d3309a72 advapi32: Make RegOpenCurrentUser() return real key handles for current SID.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:53:17 +01:00
Michael Müller 79636bebbf advapi32: Set last error to ERROR_SUCCESS in GetSidIdentifierAuthority.
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>
2015-12-09 00:53:41 +09:00
Vincent Povirk f742b05d77 advapi32/tests: Skip test when registry virtualization can't delete values.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 13:14:13 +09:00
Hugh McMaster 11669fa5e2 Assorted spelling and grammar fixes.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-17 22:56:40 +09:00
Sebastian Lackner 96f4f53937 server: Do not require SeBackupPrivilege in load_registry and unload_registry.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 17:26:22 +09:00
Jacek Caban 5935e9509b advapi32/tests: Properly test sdlen value.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-16 20:04:30 +09:00
Nikolay Sivov 076f50ee6c advapi32/tests: Simplify conditional expression (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 23:35:24 +09:00
Hans Leidekker a5b4ed75cf advapi32/tests: Avoid more test failures. 2015-09-11 18:21:58 +09:00
Hans Leidekker ca32deb0d2 advapi32/tests: Perform a case-insensitive match on domain names. 2015-09-07 18:52:18 +09:00
Hans Leidekker b368cd1b71 advapi32/tests: Avoid test failures when running as an unprivileged user. 2015-09-07 18:52:16 +09:00
Vincent Povirk 997484964a advapi32: RegOpenKeyEx can return special roots when asked for empty subkey. 2015-09-01 15:24:14 +09:00
Matt Durgavich b573986188 advapi32/tests: Fix for crashes on Mac OS X. 2015-08-27 21:43:46 +09:00
Hans Leidekker 3a771b6066 advapi32: Add well-known SID WinBuiltinAnyPackageSid. 2015-08-26 23:15:26 +09:00
Dmitry Timoshkov 48ed6a6f3e advapi32/tests: Add a test to show that THREAD_QUERY_INFORMATION should grant THREAD_QUERY_LIMITED_INFORMATION. 2015-08-20 17:35:13 +09:00
Dmitry Timoshkov 9e22949cec advapi32/tests: Add a test to show that PROCESS_QUERY_INFORMATION should implicitly grant PROCESS_QUERY_LIMITED_INFORMATION access. 2015-08-19 20:19:57 +09:00
Dmitry Timoshkov 8a088d7c2f advapi32/tests: Fix compilation with PSDK. 2015-08-19 20:19:56 +09:00
Bernhard Übelacker eecd136cb7 advapi32: Fail in RegEnumValue on missing value or val_count parameters. 2015-07-08 16:02:25 +09:00
Michael Müller 4f3acf31de advapi32: Add initial implementation for GetWindowsAccountDomainSid. 2015-06-24 23:01:45 +09:00
Michael Müller 54b3973ee0 advapi32/tests: Add tests for GetWindowsAccountDomainSid. 2015-06-24 23:01:45 +09:00
Sebastian Lackner a176655414 advapi32/tests: Explicitly check return value of GetTokenInformation. 2015-06-24 22:57:37 +09:00
Huw Davies 645a31474c Revert "advapi32: Fix RegEnumValueW when enumerating long values.".
This reverts commit 443ef6e7a6.
The tests fail on all versions of Windows.
2015-06-23 15:04:03 +09:00
Bernhard Übelacker 443ef6e7a6 advapi32: Fix RegEnumValueW when enumerating long values. 2015-06-22 20:58:23 +09:00
Hans Leidekker 1fb3f9cb15 advapi32/tests: Add tests to show that reading the SACL requires a special privilege. 2015-06-17 22:37:01 +09:00
Thomas Faber 817d903cb9 advapi32: Write back partial results in RegQueryInfoKeyA. 2015-05-20 17:26:44 +09:00
Thomas Faber 87b6d42c12 advapi32: Do not fail in RegQueryInfoKey if *class_len is 0. 2015-05-20 17:26:24 +09:00
Thomas Faber b6c31bea3d advapi32: Use STATUS_BUFFER_TOO_SMALL for buffer overflows in RegQueryInfoKeyW. 2015-05-20 17:25:56 +09:00
Thomas Faber b8bcec140c advapi32/tests: Add tests for RegQueryInfoKey. 2015-05-14 15:13:55 +09:00
Hans Leidekker 985e226c07 advapi32: Support parsing mandatory label ACE strings. 2015-04-17 14:53:13 +09:00
Piotr Caban 52df833a72 advapi32: Handle NULL DACL in SetSecurityInfo. 2015-04-03 17:07:44 +09:00
Sebastian Lackner 9e0045e167 advapi32/tests: Add tests for CreateFile with set security descriptor. 2015-04-01 22:34:19 +09:00
Sebastian Lackner bfcfceec39 advapi32/tests: Merge common code to test DACL descriptors in a helper function. 2015-04-01 22:34:19 +09:00
Sebastian Lackner 3e47270b68 advapi32/tests: Add tests for NtCreateFile inheritance when security descriptor is set. 2015-03-31 14:49:14 +09:00
Sebastian Lackner 80b384311f advapi32/tests: Repeat ACL inheritance tests for NtCreateFile. 2015-03-31 14:49:10 +09:00
Erich E. Hoover 404d5bf09d advapi32/tests: Add tests for inheriting ACL attributes.
CreateFile should also inherit ACL from the parent directory.
2015-03-31 14:49:02 +09:00
Piotr Caban 00b3f055be server: Fix DACL to permissions conversion. 2015-03-31 00:04:43 +09:00
Piotr Caban 966c5dffed ntdll: Improve parameter validation in RtlAddAce. 2015-03-30 20:03:44 +09:00
Piotr Caban f974d72672 advapi32: Add DACL inheritance support in SetSecurityInfo. 2015-03-27 20:46:02 +09:00
Piotr Caban a4b12eb9f9 advapi32/tests: Add test for mapping DACL to permission.
This test shows that first DACL entry that allows or denies access
should be used. The logic inside server for translating DACL to
permission is not matching it (always scans all DACL entries, deny
entries have bigger priority).
2015-03-27 20:45:49 +09:00
Piotr Caban 02c4f5bd27 advapi32: Add SetNamedSecurityInfo test with empty DACL. 2015-03-27 20:45:07 +09:00
Piotr Caban 3eb448cf33 server: Make directory DACL entries inheritable. 2015-03-27 20:41:03 +09:00
Francois Gouget de72e97f37 advapi32/tests: Make cb_{running,stopped}() static. 2015-03-02 13:50:57 +09:00
Andrew Eikum afa965a152 advapi32: Partially implement NotifyServiceStatusChangeW. 2015-02-26 23:05:12 +09:00
Andrew Eikum 48f0f16311 advapi32/tests: Don't test service timeout. 2015-02-26 23:05:05 +09:00
Akihiro Sagawa 03f6a6e924 advapi32: Fix HKLM\Software handling when opening with KEY_WOW64_32KEY. 2015-01-19 14:19:32 +01:00
Hans Leidekker ff0ee8f8a8 advapi32: Return an error from RegSetValueExW if passed a NULL data pointer and non-zero size. 2015-01-05 20:15:14 +01:00
Akihiro Sagawa 88778ec0b8 advapi32/tests: Add more KEY_WOW64_32KEY tests for 64-bit. 2014-12-18 18:56:06 +01:00
Jonathan Vollebregt 0311b980f3 advapi32/tests: Test RegDeleteKey with empty string parameter. 2014-11-07 14:42:57 +09:00
Jonathan Vollebregt 495b97f05b advapi32/tests: Fix bad cleanup in test_reg_create_key. 2014-11-07 14:42:18 +09:00
Jonathan Vollebregt 2e78a2c921 advapi32/tests: Add trailing slashes tests for RegOpen/CreateKey. 2014-11-07 14:41:54 +09:00
Michael Stefaniuc bd6c16628f advapi32/tests: Simplify empty string check (PVS-Studio). 2014-11-04 13:31:40 +09:00
Bruno Jesus d3b406ecce advapi32/tests: Remove dead assignment (Cppcheck). 2014-10-31 10:50:50 +09:00
Bruno Jesus c7772a5d10 advapi32/tests: Fix copy & paste issue (Cppcheck). 2014-10-31 10:50:46 +09:00
Bruno Jesus cbc8d290b9 advapi32/tests: Add a test for enumerating a registry key without setting it. 2014-10-27 14:36:47 +09:00
Eric Kohl b23ed0bc17 advapi32/tests: Fix typos in test_LsaLookupNames2. 2014-09-17 10:18:32 +02:00
Thomas Faber d6cc12d139 advapi32/tests: Fix a buffer overflow when calling GetEventLogInformation. 2014-08-15 16:59:05 +02:00
Austin English 718f1bf1b9 advapi32: Fix a memory leak in test_process_security. 2014-07-09 21:16:27 +02:00
Joris van der Wel 0a4c7860f8 server: Setting a security descriptor should not replace an existing owner or group with a default, if only a DACL is being set. 2014-07-08 19:04:49 +02:00
Erich E. Hoover f9f3b21fb3 advapi32: Implement RegSetKeySecurity on top of NtSetSecurityObject. 2014-07-04 19:31:25 +02:00
Nikolay Sivov 7041b4db85 advapi32: Implement RegSetKeyValue(). 2014-07-02 19:59:01 +02:00
Joris van der Wel 6930012f86 advapi32/tests: Refactor the retrieval of a security descriptor into a separate function so that it can be used in other tests. 2014-07-01 13:08:30 +02:00
Joris van der Wel c3f87add45 advapi32/tests: Changed an invalid comment. 2014-07-01 13:08:29 +02:00
Joris van der Wel 11674b2f61 server: Any of the 4 SE_*_DEFAULTED controls should not be stored on objects, their usage is transient. 2014-07-01 13:07:48 +02:00
Nikolay Sivov da6d5e6ae6 advapi32: Implement RegDeleteKeyValue(). 2014-06-30 22:04:52 +02:00
Vincent Povirk 8340636c55 advapi32/tests: Account for limited users in registry test. 2014-06-18 16:27:00 +02:00
Nikolay Sivov 6a4c146962 services: Defer service delete until all handles are closed. 2014-06-12 18:24:17 +02:00