media: Allow __NR_ftruncate in bpf CDM policy on Linux
The CDM needs to access files in PluginPrivateFileSystem to support persistent-state and persistent-license. It opens the through CdmStorage mojo service, which opens the file in the browser process, and pass the file descriptor to the CDM running in the sandboxed CDM (utility) process. Then the CDM needs to be able to read and write the file. To complete the write, we need to call base::File::SetLength() which needs to call ftruncate(). BUG=774762 Change-Id: I60d15bc4c308569128e6c0164d5c5d79bd5c9096 Reviewed-on: https://chromium-review.googlesource.com/720273 Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Reviewed-by:Robert Sesek <rsesek@chromium.org> Cr-Commit-Position: refs/heads/master@{#509460}
Showing
Please register or sign in to comment