[ros-diffs] [arty] 28973: Mask values that control inheritability of the handle, and don't affect access.
arty at svn.reactos.org
arty at svn.reactos.org
Sun Sep 9 14:21:23 CEST 2007
- Previous message: [ros-diffs] [cfinck] 28972: Remove the references to the "include/psdk" directory from "unicode", "wmc" and "wrc". Due to recent changes, they are not needed anymore.
- Next message: [ros-diffs] [cfinck] 28974: svn:ignore changes - Add "versionreport.xml" to the ignore list for trunk/reactos - Add *.ncb, *.suo, *.sln to the ignore list for base, boot, dll, drivers, hal, include, lib, media, modules, ntoskrnl, subsystems - Change the ignore list of "tools" to only include GNUmakefile, *.user, *.ncb and *.suo. The components in this directory are not processed by rbuild, so there won't be autogenerated project files for them. Therefore it should be possible to add manually created project files (as already done for some components)
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: arty
Date: Sun Sep 9 16:21:22 2007
New Revision: 28973
URL: http://svn.reactos.org/svn/reactos?rev=28973&view=rev
Log:
Mask values that control inheritability of the handle, and don't affect access.
Modified:
trunk/reactos/ntoskrnl/se/semgr.c
Modified: trunk/reactos/ntoskrnl/se/semgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/se/semgr.c?rev=28973&r1=28972&r2=28973&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/se/semgr.c (original)
+++ trunk/reactos/ntoskrnl/se/semgr.c Sun Sep 9 16:21:22 2007
@@ -1035,7 +1035,8 @@
AccessMode))
{
CurrentAccess |= WRITE_OWNER;
- if (DesiredAccess == CurrentAccess)
+ if ((DesiredAccess & ~VALID_INHERIT_FLAGS) ==
+ (CurrentAccess & ~VALID_INHERIT_FLAGS))
{
if (SubjectContextLocked == FALSE)
{
@@ -1067,7 +1068,8 @@
if (Sid && SepSidInToken(Token, Sid))
{
CurrentAccess |= (READ_CONTROL | WRITE_DAC);
- if (DesiredAccess == CurrentAccess)
+ if ((DesiredAccess & ~VALID_INHERIT_FLAGS) ==
+ (CurrentAccess & ~VALID_INHERIT_FLAGS))
{
if (SubjectContextLocked == FALSE)
{
@@ -1145,7 +1147,8 @@
*AccessStatus = STATUS_SUCCESS;
return TRUE;
}
- else if (*GrantedAccess == DesiredAccess)
+ else if ((*GrantedAccess & ~VALID_INHERIT_FLAGS) ==
+ (DesiredAccess & ~VALID_INHERIT_FLAGS))
{
*AccessStatus = STATUS_SUCCESS;
return TRUE;
- Previous message: [ros-diffs] [cfinck] 28972: Remove the references to the "include/psdk" directory from "unicode", "wmc" and "wrc". Due to recent changes, they are not needed anymore.
- Next message: [ros-diffs] [cfinck] 28974: svn:ignore changes - Add "versionreport.xml" to the ignore list for trunk/reactos - Add *.ncb, *.suo, *.sln to the ignore list for base, boot, dll, drivers, hal, include, lib, media, modules, ntoskrnl, subsystems - Change the ignore list of "tools" to only include GNUmakefile, *.user, *.ncb and *.suo. The components in this directory are not processed by rbuild, so there won't be autogenerated project files for them. Therefore it should be possible to add manually created project files (as already done for some components)
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Ros-diffs
mailing list