Computation of Imported NvSciBufObj Permissions

  • Case-1: ImportAPI.Perm = NvSciBufAccessPerm_Auto. Import Application invoked the Import API with NvSciBufAccessPerm_Auto option. In this case:
ObjImport.Perm =  ObjExport.Perm
  • Case-2: ImportAPI.Perm = explicit permissions. Import Application invoked the Import API by explicitly specifying the permissions. In this case,ObjImport.Perm is computed as shown below:

INPUT

OUTPUT

ObjExport.Perm

ImportAPI.Perm

ObjImport.Perm

RO

RO

RO

RO

RW

Import Fail

RW

RO

RW

RW

RW

RW

Note:

While computing the imported NvSciBufObj permissions, the permissions in the reconciled list are ignored. In fact, the value of NvSciBufGeneralAttrKey_ActualPerm in the reconciled list is updated to the value of ObjImport.Perm.

Note:

NvSciBufObj Import APIs return a failure if the export descriptors are imported using a wrong ipcEndpoint or inappropriate permissions.