This commit is contained in:
Bill Zissimopoulos
2015-11-21 21:25:19 -08:00
parent 14b1f75ac7
commit d6f1702af7
15 changed files with 458 additions and 28 deletions

View File

@ -6,14 +6,36 @@
#include <sys/driver.h>
static DRIVER_DISPATCH FspFsvolQuerySecurity;
static DRIVER_DISPATCH FspFsvolSetSecurity;
DRIVER_DISPATCH FspQuerySecurity;
DRIVER_DISPATCH FspSetSecurity;
#ifdef ALLOC_PRAGMA
#pragma alloc_text(PAGE, FspFsvolQuerySecurity)
#pragma alloc_text(PAGE, FspFsvolSetSecurity)
#pragma alloc_text(PAGE, FspQuerySecurity)
#pragma alloc_text(PAGE, FspSetSecurity)
#endif
static
NTSTATUS
FspFsvolQuerySecurity(
_In_ PDEVICE_OBJECT DeviceObject,
_In_ PIRP Irp)
{
return STATUS_INVALID_DEVICE_REQUEST;
}
static
NTSTATUS
FspFsvolSetSecurity(
_In_ PDEVICE_OBJECT DeviceObject,
_In_ PIRP Irp)
{
return STATUS_INVALID_DEVICE_REQUEST;
}
NTSTATUS
FspQuerySecurity(
_In_ PDEVICE_OBJECT DeviceObject,
@ -23,7 +45,13 @@ FspQuerySecurity(
ASSERT(IRP_MJ_QUERY_SECURITY == IrpSp->MajorFunction);
Result = STATUS_INVALID_DEVICE_REQUEST;
switch (FspDeviceExtension(DeviceObject)->Kind)
{
case FspFsvolDeviceExtensionKind:
FSP_RETURN(Result = FspFsvolQuerySecurity(DeviceObject, Irp));
default:
FSP_RETURN(Result = STATUS_INVALID_DEVICE_REQUEST);
}
FSP_LEAVE_MJ("", 0);
}
@ -37,7 +65,13 @@ FspSetSecurity(
ASSERT(IRP_MJ_SET_SECURITY == IrpSp->MajorFunction);
Result = STATUS_INVALID_DEVICE_REQUEST;
switch (FspDeviceExtension(DeviceObject)->Kind)
{
case FspFsvolDeviceExtensionKind:
FSP_RETURN(Result = FspFsvolSetSecurity(DeviceObject, Irp));
default:
FSP_RETURN(Result = STATUS_INVALID_DEVICE_REQUEST);
}
FSP_LEAVE_MJ("", 0);
}