[Bug 759358] Add GST_CAPS_FEATURE_MEMORY_DMABUF "memory:DMABuf"
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Jun 23 11:31:16 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=759358
--- Comment #15 from Benjamin Gaignard <benjamin.gaignard at gmail.com> ---
It is possible to return an error code on mmap call it is up to the secure
module to decide of it own policy: for example you can allow mmap for write but
not for read.
static int smaf_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma)
{
.... call to secure module with the direction (read and/or write) to request
access for the cpu
ret = smaf_grant_access(handle, get_cpu_device(0), 0,
handle->length, dir);
if (!ret)
return -EINVAL;
return dma_buf_mmap(handle->db_alloc, vma, 0);
}
SMAF offer the same API in kernel then in userland so you can secure a buffer
directly from the driver or test it secure status.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list