Parse PPD in a sandbox compliant manner
The Linux sandbox causes created files to be automatically deleted once they are closed. This means that creating a file without leaving an open file handle is useless afterwards for any subsequent calls expecting it to exist with results of previous work. Change ParsePpdCapabilities() to open a stream for a temporary file and keep that open for the duration of the file operations, instead of doing multiple open/close operations against a common filename. This is necessary for supporting sandboxing of the print backend in a utility process. Bug: 809738 Change-Id: Id16dc686873decad7be980ce4621747b4233184a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2597143Reviewed-by:Rebekah Potter <rbpotter@chromium.org> Reviewed-by:
Daniel Hosseinian <dhoss@chromium.org> Commit-Queue: Alan Screen <awscreen@chromium.org> Cr-Commit-Position: refs/heads/master@{#839166}
Showing
Please register or sign in to comment