Skip to content

[Backport wrynose] refpolicy-targeted: allow qcom_nhx to access the kgsl GPU node - #3816

Open
rohibira-qipl wants to merge 1 commit into
qualcomm-linux:wrynosefrom
rohibira-qipl:backport-wrynose-nhx-kgsl
Open

rohibira-qipl wants to merge 1 commit into
qualcomm-linux:wrynosefrom
rohibira-qipl:backport-wrynose-nhx-kgsl

Conversation

@rohibira-qipl

Copy link
Copy Markdown
Contributor

Backport of #3551 to wrynose.

On Shikra, the camera software resizes frames on the GPU, which is the
first GPU-based solution in QLI. It relies on Qualcomm's Adreno OpenCL
implementation, which needs /dev/kgsl-3d0. The nativehaltest binary
runs in qcom_nhx_t, which is denied access to that node, so OpenCL
initialisation fails.

Allow qcom_nhx_t to access the GPU device node. Also add the rules
needed to silence the non-fatal denials seen when qti-cam-server.service
is stopped and started with systemctl.

Express every rule through refpolicy interfaces instead of raw allow
statements against types owned by other modules.

Signed-off-by: Rohit Biradar <[email protected]>
(cherry picked from commit 1970fbb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant