Add SElinux policy for NHX test app#1667
Add SElinux policy for NHX test app#1667ricardosalveti merged 1 commit intoqualcomm-linux:masterfrom
Conversation
011d6a5 to
4b1ccc1
Compare
|
No commit message, not using your actual name in the commit and sign-off-by, no description or justification for the change, etc. |
|
Also please follow the commit message pattern we use in this repository, check with git log. |
b6d5732 to
27bbc65
Compare
| Date: Wed, 25 Feb 2026 22:01:44 +0530 | ||
| Subject: [PATCH] Add SELinux policy for nhx.sh | ||
|
|
||
| This adds a new policy module for the nativehaltest camera test application. |
There was a problem hiding this comment.
This is obvious. Anything more specific to say?
There was a problem hiding this comment.
Added detailed commit message.
There was a problem hiding this comment.
And the patch wasn't updated.
27bbc65 to
ce8f686
Compare
lumag
left a comment
There was a problem hiding this comment.
These tools are part of the vendor-specific nativehaltest suite located
in 'vendor/qcom/proprietary/'
-ENOSUCHDIR
This patch adds SELinux policy rules to support Qualcomm's proprietary
Don't describe patch contents. Start commit messages from the description of the issue you are solving. What does not work and why?
ce8f686 to
f382c2f
Compare
Test run workflowTest jobs for commit f382c2f
All jobs summary
|
Test Results 28 files ±0 28 suites ±0 1h 5m 10s ⏱️ + 5m 3s For more details on these failures, see this check. Results for commit b0d61d3. ± Comparison against base commit fd0469e. This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
|
Please rebase to fix the conflict with master. |
The proprietary camera testing script 'nhx.sh' currently executes in the generic 'initrc_t' domain. This configuration lacks proper process isolation and fails to define the specific permissions required by the 'nativehaltest' application it launches. Define a new policy module 'qcom_nhx' to transition these tools into their own confined domains: - qcom_nhx_launcher_t: For 'nhx.sh', allowing it to read /sys/devices/soc0/soc_id for SoC detection. - qcom_nhx_t: For 'nativehaltest', granting access to the CamX framework, DMA, FastRPC, V4L video nodes, and camera cache directories. These tools are installed to /usr/bin/ and depends on the closed-source CamX framework. As such, this policy is inappropriate for upstream submission. Signed-off-by: Rohit Biradar <rohibira@qti.qualcomm.com>
f382c2f to
b0d61d3
Compare
Test run workflowTest jobs for commit b0d61d3
All jobs summary
|
3d14d26
into
qualcomm-linux:master
Added a patch implementing SELinux policy for nhx.sh and nativehaltest camera test app.