From 5ec1718d745ef795ac890f4580e34a0b44bbc94d Mon Sep 17 00:00:00 2001 From: Vitaliy Margolen Date: Tue, 6 Feb 2007 21:44:15 -0700 Subject: [PATCH] server: Add security descriptor field to object struct. --- server/object.c | 2 ++ server/object.h | 1 + 2 files changed, 3 insertions(+) diff --git a/server/object.c b/server/object.c index 63465f2f7e1..095d01814f3 100644 --- a/server/object.c +++ b/server/object.c @@ -178,6 +178,7 @@ void *alloc_object( const struct object_ops *ops ) obj->refcount = 1; obj->ops = ops; obj->name = NULL; + obj->sd = NULL; list_init( &obj->wait_queue ); #ifdef DEBUG_OBJECTS list_add_head( &object_list, &obj->obj_list ); @@ -278,6 +279,7 @@ void release_object( void *ptr ) assert( list_empty( &obj->wait_queue )); obj->ops->destroy( obj ); if (obj->name) free_name( obj ); + free( obj->sd ); #ifdef DEBUG_OBJECTS list_remove( &obj->obj_list ); memset( obj, 0xaa, obj->ops->size ); diff --git a/server/object.h b/server/object.h index 1a75e4c7301..a2d702958c4 100644 --- a/server/object.h +++ b/server/object.h @@ -88,6 +88,7 @@ struct object const struct object_ops *ops; struct list wait_queue; struct object_name *name; + struct security_descriptor *sd; #ifdef DEBUG_OBJECTS struct list obj_list; #endif -- 2.11.4.GIT