/** * @file sys/security.c * * @copyright 2015 Bill Zissimopoulos */ #include DRIVER_DISPATCH FspQuerySecurity; DRIVER_DISPATCH FspSetSecurity; #ifdef ALLOC_PRAGMA #pragma alloc_text(PAGE, FspQuerySecurity) #pragma alloc_text(PAGE, FspSetSecurity) #endif NTSTATUS FspQuerySecurity( _In_ PDEVICE_OBJECT DeviceObject, _In_ PIRP Irp) { FSP_ENTER_MJ(PAGED_CODE()); ASSERT(IRP_MJ_QUERY_SECURITY == IrpSp->MajorFunction); Irp->IoStatus.Status = STATUS_INVALID_DEVICE_REQUEST; IoCompleteRequest(Irp, IO_NO_INCREMENT); Result = STATUS_INVALID_DEVICE_REQUEST; FSP_LEAVE_MJ("", 0); } NTSTATUS FspSetSecurity( _In_ PDEVICE_OBJECT DeviceObject, _In_ PIRP Irp) { FSP_ENTER_MJ(PAGED_CODE()); ASSERT(IRP_MJ_SET_SECURITY == IrpSp->MajorFunction); Irp->IoStatus.Status = STATUS_INVALID_DEVICE_REQUEST; IoCompleteRequest(Irp, IO_NO_INCREMENT); Result = STATUS_INVALID_DEVICE_REQUEST; FSP_LEAVE_MJ("", 0); }