server: Add security descriptor field to object struct.
This commit is contained in:
parent
2051bcccca
commit
5ec1718d74
|
@ -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 );
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue