Thomas Bluemel
8a80403d2a
Some portability fixes that address possible alignment issues. Read R. Chen's blog 10/06/06 for more information.
...
svn path=/trunk/; revision=24472
2006-10-09 15:09:50 +00:00
Alex Ionescu
f0af84da4e
- MSVC Build Fixes
...
svn path=/trunk/; revision=23925
2006-09-06 12:19:00 +00:00
Magnus Olsen
c80f9e7cea
patch from w3seek : Bug#: 1671 : RTL: Fix checking the SACL data area in the Win64 version of RtlSelfRelativeToAbsoluteSD2
...
svn path=/trunk/; revision=23033
2006-07-12 21:36:05 +00:00
Alex Ionescu
8481c1fa10
- NDK 0.98, now with versionned headers. Too many changes to list, see the TinyKRNL SVN Logs for more detailed information. Thanks to Andrew (Wax), Thomas and Aleksey for testing.
...
svn path=/trunk/; revision=21880
2006-05-10 17:47:44 +00:00
Thomas Bluemel
78641fec1a
make functions match their declarations
...
svn path=/trunk/; revision=20288
2005-12-21 19:07:47 +00:00
James Tabor
2da4a5f455
Fix compiling. Thanks to filip.
...
svn path=/trunk/; revision=20286
2005-12-21 18:03:28 +00:00
Thomas Bluemel
b3259fa7d8
fixed data size calculation in RtlSelfRelativeToAbsoluteSD2
...
svn path=/trunk/; revision=19079
2005-11-09 00:56:41 +00:00
Thomas Bluemel
8006508b1a
return the required buffer size in RtlMakeSelfRelativeSD if the supplied buffer is too small
...
svn path=/trunk/; revision=18945
2005-11-02 00:40:35 +00:00
Thomas Bluemel
837e60ee47
fixed a typo
...
svn path=/trunk/; revision=18940
2005-11-01 22:39:14 +00:00
Thomas Bluemel
23c6b8167f
properly handle fragmented self-relative security descriptors in the 64 bit version of RtlSelfRelativeToAbsoluteSD2
...
svn path=/trunk/; revision=18939
2005-11-01 22:36:00 +00:00
Thomas Bluemel
30b938fbe9
implemented RtlSelfRelativeToAbsoluteSD2 for 32 and 64 bit builds
...
svn path=/trunk/; revision=18938
2005-11-01 21:53:36 +00:00
Thomas Bluemel
c0bbaf7802
implement MakeAbsoluteSD2 by forwarding to RtlSelfRelativeToAbsoluteSD2
...
svn path=/trunk/; revision=18718
2005-10-23 18:23:57 +00:00
Alex Ionescu
8c002db0c2
- NDK fix: don't undef a million status codes, instead, have apps define WIN32_NO_STATUS.
...
- winnt.h: respect WIN32_NO_STATUS for DBG codes.
- rtl: change STDCALL to NTAPI
- everything else: add precompiled headers where missing, define WIN32_NO_STATUS.
svn path=/trunk/; revision=18598
2005-10-19 17:03:38 +00:00
Alex Ionescu
c39ccd6592
- Part one of major RTL cleanup. Merge duplicated code and stick everything in lib\rtl that used to be in ntdll. Also cleanup the file headers, copyright information and includes.
...
svn path=/trunk/; revision=17731
2005-09-08 00:09:32 +00:00
Alex Ionescu
87507a864e
- More NDK + MSDDK/IFS Compatibility fixes
...
- Prototype fixes
svn path=/trunk/; revision=17660
2005-09-05 18:06:20 +00:00
Alex Ionescu
b8f8df7565
- Various Microsoft DDK/PSDK compatibility fixes and some MSVC stuff too.
...
- Fix PSECURITY_DESCRIPTOR_RELATIVE names.c
- Don't use rtltypes.h as a replacement for normal stdlib headers.
- Fix a HAL header fixme.
svn path=/trunk/; revision=16744
2005-07-26 14:00:45 +00:00
Filip Navara
d2bc064abf
#include "rtl.h" -> #include <rtl.h>
...
svn path=/trunk/; revision=16732
2005-07-26 08:39:07 +00:00
Steven Edwards
eace72f07c
strip whitespace from end of lines
...
svn path=/trunk/; revision=15165
2005-05-09 01:41:02 +00:00
Alex Ionescu
35deccffea
Make rtl use a single header. Helps for PCH and will help for the new Headers (no need to change each file)
...
svn path=/trunk/; revision=15115
2005-05-08 05:14:46 +00:00
Thomas Bluemel
ea5929db62
1. added irql checks to various rtl and security functions
...
2. RtlGetVersion needs to be implemented differently in ntoskrnl and ntdll, ntoskrnl's version must not access the PEB (which might not be present) while ntdlls gets most information from the PEB structure
3. can't use spinlocks to serialize access to the security descriptor cache since it calls sd rtl functions which require to run < apc level
svn path=/trunk/; revision=13712
2005-02-22 17:58:19 +00:00
Eric Kohl
dfa5c9434a
- Implement RtlSetAttributesSecurityDescriptor, RtlInitializeGenericTableAvl, RtlNumberGenericTableElements and RtlNumberGenericTableElementsAvl.
...
svn path=/trunk/; revision=13558
2005-02-14 14:36:03 +00:00
Thomas Bluemel
df616c9b3b
The structure layout of self-relative security descriptors may be different from absolute security descriptors depending on the platform. Self-relative security descriptors always use 32 bit offsets while absolute security descriptors use pointers which could be 64 bits.
...
svn path=/trunk/; revision=13502
2005-02-12 11:47:03 +00:00
Eric Kohl
1ca75be5f0
Implement RtlGetSecurityDescriptorRMControl, RtlSetSecurityDescriptorRMControl, SetSecurityDescriptorControl, GetSecurityDescriptorRMControl and SetSecurityDescriptorRMControl.
...
svn path=/trunk/; revision=13493
2005-02-11 15:52:38 +00:00
Eric Kohl
5930efc575
- Implement RtlSetControlSecurityDescriptor
...
- Remove property set functions from ntdll.def because they are not implemented in Win2K and above.
svn path=/trunk/; revision=13492
2005-02-11 12:06:29 +00:00
Martin Fuchs
e228aadfe5
migrate substitution keywords to SVN
...
svn path=/trunk/; revision=12852
2005-01-06 13:58:04 +00:00
Eric Kohl
1f82196fd5
- Use ROUND_UP macro instead of explicit calculation.
...
- Replace fixed values by appropriate constants.
- Replace STATUS_UNSUCCESSFUL by better status codes.
svn path=/trunk/; revision=11046
2004-09-25 12:11:13 +00:00
Art Yerkes
0089446cc6
cm/regfile.c, ldr/init.c, ldr/loader.c: OBJ_CASE_INSENSITIVE patch I proposed
...
on the list. This makes the registry, and dll loading case insensitive when
we are on a case preserving filesystem.
ntoskrnl/ex/power.c: My own contributions to the poweroff message list.
ntoskrnl/mm/npool.c: Fixed bit-rot in whole page alloc. That's how i found
the bug below.
se/semgr.c, lib/rtl/sd.c:
semgr, when creating a SECURITY_DESCRIPTOR, anded the PRESENT and DEFAULT
flags rather than oring them for group, dacl, and sacl, leading to
RtlLengthSecurityDescriptor giving the wrong length to sdcache. When
sdcache would copy the security descriptor, it would be too short, and
the bound check from the whole-page allocator would go off. I fixed this
and made rtl/sd.c use the ROUND_UP macro and RtlLengthSid. This is cleaner.
It may not be completely correct yet but it no-longer truncates security
descriptors into the cache, which means that the Owner, Group and etc
SIDs should now actually work right when coming from the cache, no matter
what happens in the heap. They probably seemed to work before simply
because they trashed the ends of their blocks and never moved in the
cache.
svn path=/trunk/; revision=11040
2004-09-25 06:41:16 +00:00
Thomas Bluemel
594cfc6a04
1. fixed RtlValidSecurityDescriptor() that attempted to validate nonexisting owner/group SID
...
2. implemented RtlValidRelativeSecurityDescriptor()
svn path=/trunk/; revision=10983
2004-09-22 20:16:02 +00:00
Filip Navara
a48983fc6d
- Use ULONG_PTR instead of ULONG for integer arithmetics on pointers.
...
svn path=/trunk/; revision=10729
2004-08-28 22:22:39 +00:00
Alex Ionescu
cd351f4dc9
Tagged certain functions that were exported both under NT and ROS, but not marked as un/implemented.
...
svn path=/trunk/; revision=10411
2004-08-07 19:13:27 +00:00
Alex Ionescu
3c1d312107
Added RTL Stubs, Prototypes and Exports.
...
svn path=/trunk/; revision=10404
2004-08-05 18:17:37 +00:00
Gunnar Dalsnes
cd5c05ea8b
create rtl for stuff common to ntdll/ntoskrnl
...
svn path=/trunk/; revision=9570
2004-05-31 19:33:59 +00:00