[NTOSKRNL]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 26 Nov 2013 23:28:37 +0000 (23:28 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 26 Nov 2013 23:28:37 +0000 (23:28 +0000)
commit5ab8592b449a4baea80b0ac31500cebebc813956
tree95d473e82dc90fce75200889e1bc389b62002227
parent543797fee3b88b652e167bb75a100212333b6a45
[NTOSKRNL]
- Implement SepAdjustPrivileges, which does both the counting of (changed) privileges as well as applying them, when requested. Use it in NtAdjustPrivilegesToken twice instead of duplicating the code there.
- Fix return value of NtAdjustPrivilegesToken by making sure to properly count the found privileges and check against the provided ones
- Lock the Token, while messing with the privileges
- Add support for SE_PRIVILEGE_REMOVED
- Proplery (re)calculate Token flags after changing privileges
- Improve failure pathes by using a common cleanup label
- Don't free the allocations atatched to the token in SepCreateToken on failure, since ObDereferenceObject will already do that.
- Make priviliges constants instead of initializing them.

svn path=/trunk/; revision=61109
reactos/ntoskrnl/include/internal/se.h
reactos/ntoskrnl/se/priv.c
reactos/ntoskrnl/se/token.c