A free Windows-compatible Operating System - mirrored from GitHub
Go to file
Timo Kreuzer 5ab8592b44 [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
2013-11-26 23:28:37 +00:00
reactos [NTOSKRNL] 2013-11-26 23:28:37 +00:00
rosapps [ROSAPPS] 2013-09-15 18:17:25 +00:00
rostests [KMTESTS:RTL] 2013-11-26 14:26:31 +00:00
wallpaper - Add CMakeLists for wallpaper 2012-02-05 13:43:04 +00:00