Commit Graph

128 Commits

Author SHA1 Message Date
Mohamad Al-Jaf 25839fffc8 ntdll: Fix the spelling of a comment.
Signed-off-by: Mohamad Al-Jaf <mohamadaljaf@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-23 20:19:29 +01:00
Biswapriyo Nath 2d0fefbc49 ntdll: Add RtlDefaultNpAcl stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49900
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-08 22:25:59 +01:00
Michael Stefaniuc 636d398c7d ntdll: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-04 09:37:42 +01:00
Louis Lenders 518d06404a ntdll: RtlConvertToAutoInheritSecurityObject is NTSTATUS, not BOOL.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-08-31 22:09:20 +02:00
Alexandre Julliard f298db7254 ntdll: Move the security system calls to the Unix library.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-20 20:14:18 +02:00
Alexandre Julliard dd77ff754b ntdll: Move the token functions to the Unix library.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-07-20 17:58:12 +02:00
Alexandre Julliard 4478ba258e ntdll: Use the standard C library names for the printf functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-30 12:25:08 +02:00
Alexandre Julliard 8a169390c9 ntdll: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-06-30 12:25:08 +02:00
Alexandre Julliard 18411a19b4 ntdll: Use wcscpy() instead of strcpyW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-31 15:53:53 +02:00
Alexandre Julliard eb1b2e5486 ntdll: Avoid using sprintfW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-30 23:10:06 +02:00
Zebediah Figura a28736df1f include: Add NTSTATUS severity macros.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-08 09:15:43 +02:00
Hans Leidekker fdc51fc278 ntdll: Fix size returned from RtlMakeSelfRelativeSD on 64-bit.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-24 16:48:02 +01: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 641ca44c97 ntdll: Implement RtlAddMandatoryAce.
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
Louis Lenders eee837e931 ntdll: Add stub for RtlAddAccessDeniedObjectAce and forward to AddAccessDeniedObjectAce in advapi32.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-07 13:23:06 +09:00
Louis Lenders c63d417222 ntdll: Add stub for RtlAddAccessAllowedObjectAce and forward to AddAccessAllowedObjectAce in advapi32.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-03 12:58:27 +09:00
Louis Lenders d37b3f59e9 ntdll: Add stub for RtlAddAuditAccessObjectAce and forward to AddAuditAccessObjectAce in advapi32.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 18:51:44 +09:00
Dmitry Timoshkov af66108446 ntdll: Implement RtlValidRelativeSecurityDescriptor.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:56 +09:00
Sebastian Lackner 39abfc4d74 ntdll: Add stub for NtImpersonateAnonymousToken. 2015-05-21 13:57:05 +09:00
Piotr Caban 966c5dffed ntdll: Improve parameter validation in RtlAddAce. 2015-03-30 20:03:44 +09:00
André Hentschel d7fb376db4 ntdll: Use boolean return values in boolean functions. 2014-01-29 17:30:46 +01:00
Austin English 56057acdcd ntdll: Add a stub for RtlConvertToAutoInheritSecurityObject. 2013-03-27 20:12:26 +01:00
Andrew Talbot c228ecba39 ntdll: Mark some fall-throughs in a switch statement. 2011-10-08 20:23:06 +02:00
Alexandre Julliard ab7efe7273 ntdll: Fix RtlGetSacl/DaclSecurityDescriptor for relative descriptors on 64-bit. 2011-03-09 13:44:11 +01:00
Alexandre Julliard 8543c32442 ntdll: Properly handle empty but present ACLs in self-relative descriptors. 2010-02-18 13:01:58 +01:00
Rob Shearman f2f50f18dc ntdll: Don't read beyond the end of the array on the last ace iteration in RtlValidAcl. 2009-11-29 16:40:06 +01:00
Alexandre Julliard 2ee9118266 ntdll: Fix handling of self-relative security descriptors for 64-bit. 2009-06-16 13:29:05 +02:00
Michael Stefaniuc d2f6f56873 ntdll: Remove superfluous pointer casts. 2009-03-23 12:40:53 +01:00
Nikolay Sivov 800b05c4b5 ntdll: Check pointers in NtAccessCheck to prevent access violation. 2009-01-14 12:20:17 +01:00
Andrey Turkin 79dd662d2d ntdll: Always set output values in RtlGetDaclSecurityDescriptor. 2009-01-04 14:59:54 +01:00
Alexandre Julliard d1b3d484f7 server: Add functions for conversions between server object handles and pointer-style handles. 2008-12-08 16:05:17 +01:00
Paul Bryan Roberts b1542f4f00 ntdll: RtlSetControlSecurityDescriptor() implementation and test. 2008-10-20 13:46:33 +02:00
Andrew Talbot 741b65c200 ntdll: Remove unneeded address-of operators from array names. 2008-07-11 14:06:27 +02:00
Alexandre Julliard 94e217891c exception.h: Make the RtlUnwind wrapper available separately.
Also avoid dependency on winternl.h.
2008-07-03 13:08:19 +02:00
Andrew Talbot 5ecd33e2f9 ntdll: Assign to structs instead of using memcpy. 2008-03-10 11:23:30 +01:00
Rob Shearman 21e2caa484 ntdll: Fix the index check in RtlGetAce.
The index is zero based so we should obviously be returning
STATUS_INVALID_PARAMETER if the index is equal to the ACE count.
2008-01-23 11:31:42 +01:00
Andrew Talbot 1ebe82af65 ntdll: Remove unneeded casts. 2007-12-31 16:45:22 +01:00
Gerald Pfeifer 3cf116d4e9 ntdll: Simplify condition in RtlGetAce() based on variable (un)signedness. 2007-11-26 13:56:05 +01:00
Dan Kegel ab07d61b91 ntdll: NtAccessCheck: Only send used bytes to server. 2007-10-31 14:15:40 +01:00
Rob Shearman 6b081232b9 ntdll: Add a stub for RtlSetControlSecurityDescriptor.
Implement SetSecurityDescriptorControl on top of RtlSetControlSecurityDescriptor.
2007-10-23 18:20:45 +02:00
Rob Shearman 06b2da9560 ntdll: Fix RtlValidAcl to accept newer ACL revisions. 2007-10-23 18:18:29 +02:00
Rob Shearman 6bc11536bd ntdll: Allow the newer ACL revisions in RtlCreateAce. 2007-10-23 18:18:29 +02:00
Rob Shearman a006b06080 ntdll: Fix the return code from RtlSetDaclSecurityDescriptor when daclpresent is FALSE. 2007-10-16 13:17:14 +02:00
Rob Shearman a9ffa82c6d ntdll: Fix NtAccessCheck for NULL, but present SACLs and DACLs. 2007-10-16 13:17:06 +02:00
Mikolaj Zalewski 611f57bc20 advapi32/ntdll: GetSecurityDescriptorOwner/Group should fill isDefaulted also for NULL sids. 2007-09-28 11:26:10 +02:00
Mikolaj Zalewski 3c51b2c645 advapi32/ntdll: MakeRelativeSD should preserve NULL pointers (with testcase). 2007-09-28 11:26:00 +02:00
Mikolaj Zalewski 04e688a26d ntdll: Add RtlAddAuditAccessAceEx. 2007-09-25 11:18:40 +02:00
Marcus Meissner a5facc008b ntdll: Initialize pointers to NULL (Coverity). 2007-05-23 13:14:09 +02:00
Dmitry Timoshkov e142779b09 ntdll: Fix compilation warnings in 64-bit mode. 2007-05-23 13:10:20 +02:00
Andrew Talbot 9fe3b60f12 ntdll: Exclude unused headers. 2007-05-15 12:19:31 +02:00