Skip to content

Could test get FILE_OBJECTID_BUFFER functions #296

@gwr

Description

@gwr

We observe that Windows 11 now requests a FILE_OBJECTID_BUFFER quite frequently (apparently after almost every SMB2 create) using the following SMB2 functions:

  • SMB2_Ioctl / FSCTL_CREATE_OR_GET_OBJECT_ID
  • SMB2_Ioctl / FSCTL_GET_OBJECT_ID
  • SMB2_GetInfo / FS_INFO / FileFsObjectIdInformation

We also occasionally see requests for a FILE_ID_INFORMATION buffer, containing the same "Object Id", this SMB call:

  • SMB2_Getinfo / FILE_INFO / FileIdInformation

I don't see any tests for these information levels. Any server could implement them, and we do, returning a per-file unique value for the Object ID. The test cannot possibly "know" what is a correct value, but it could verify that the value is not all zeros, and could verify that two new files have different Object ID values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions