Commit graph

789 commits

Author SHA1 Message Date
Sheik Anwar Shabic Y
174238fe51 Sepolicy_vndr: add widevine to access qseecom_ta heap
Add widevine client to access qseecom_ta heap.

Change-Id: If99d73432c55f9feda823d97818ea422eae864b9
2023-06-12 10:47:47 +05:30
Pavan Kumar M
43fa987fe0 Add rules for qms daemon
Change-Id: Ifb54c1cfcdf231964530a3fe6e2785808cd6904a
2023-03-20 00:10:15 -07:00
Udipto Goswami
aec146fc65 sepolicy_vndr: Add permission for USB HAL to access usb sysfs nodes
Adding permissions for for usb hal to access the
vendor_sysfs_usb_node. This is required to hal to perform error
recovery in host mode.

Change-Id: Ie7fff2ba54fd50864ab6be90e97d002be7ca10cc
Signed-off-by: Udipto Goswami <quic_ugoswami@quicinc.com>
2023-02-13 22:39:21 -08:00
Devanshi Bansal
9f28b215d4 sepolicy_vndr: allow charger to read display properties
Change-Id: I1d9c503bcfe2fad1d816afb665790151c9a361d1
2022-12-20 20:56:19 -08:00
Manaf Meethalavalappu Pallikunhi
ba128925e9 sepolicy: Remove thermal-engine access to audio device node
Remove thermal-engine access to audio device node as it doesn't
require any audio device resources access.

Change-Id: I65826695c48ef139fe6678b78bd6a98c7757bef4
2022-11-21 23:58:02 -08:00
Yuanfang Zhang
7ed184f888 sepolicy: add selabel for byte-cntr1 node
Add add selable for new node byte-cntr1.

Change-Id: I1c64a20841230a634de7d83e37723804d1b2ddde
2022-10-18 15:04:39 +08:00
Vala Zadeh
1a79994c5c sepolicy_vndr: Add IQtiRadioConfig
- Add IQtiRadioConfig to vendor_hal_telephony_service
  domain in vendor partition which is needed for RIL
  to connect to the service.

Change-Id: I00dfc42d78db1fb54e9186def0394ce1e7afa8b4
CRs-Fixed: 3162170
2022-09-28 02:58:59 -07:00
Satish Kumar Kodishala
a98f1950e0 Add permissions to access btfmslim node
Add permissions to access btfmslim node

CRs-Fixed: 3104843
Change-Id: I0d796623745616ef3c559aeec1564cee31cae0e8
2022-09-07 23:40:39 -07:00
qctecmdr
09e6dfdb9d Merge "sepolicy_vndr: Add sepolicy for ssg service app" 2022-08-04 00:25:49 -07:00
Charles McGrath
dd500f8e80 sepolicy_vndr: Add sepolicy for ssg service app
sepolicy changes for mlid to talk to service apps
as well as other vendor services

Change-Id: Iaf3d8ed13b3034d3365723483d62495b71224c61
2022-08-03 15:43:11 -07:00
Devanshi Bansal
076f86a3da sepolicy_vndr: Add permission to access card1
Change-Id: I6a01fd6e67275d7a286a13551c1950f7b9f81917
2022-07-29 00:32:50 -07:00
Chris Goldsworthy
bce4b5e6e0 sepolicy: Add selabel for new CDSP CMA heap
Add a new selabel for the new CDSP CMA heap.

Change-Id: Ia169d61d8a672f5fcac45fc11f21d37279f01c24
2022-07-13 10:47:39 -07:00
zehugong
3852700093 sepolicy_vndr: remove common sepolicy of power-opt service
Add sepolicy of soc name to target.

Change-Id: I5b20d169becfc61acff73a2bf353e7d00a3cbeb3
2022-06-30 14:01:02 +08:00
qctecmdr
8653c6284c Merge "Remove cdsp SE policy for lowirpcd daemon" 2022-06-21 16:14:04 -07:00
Michael Adisumarta
f621e3b2b2 sepolicy_vndr: add policies for ipa_lnx_agent
Spearhead framework is used for collecting data path stats
for debugging. ipa_lnx_agent is the agent that will collect stats
related to dataipa driver. For this framework to function
we need to define new SELinux policies to provide the
required access privileges.

Change-Id: I47665d6bbea653572631b4260913ad458a216169
2022-06-08 06:30:21 -07:00
zehugong
e37492c655 sepolicy_vndr: sepolicy change for XML parse
Add property to support get soc name.

Change-Id: I98cdbe0e82b6f65e698c2724bd8f0444384d2405
2022-06-02 10:04:10 +08:00
mukul sharma
9d3c47c936 Remove cdsp SE policy for lowirpcd daemon
Currently, lowirpcd uses CDSP access SE policy
which is not by required for lowirpcd

Change-Id: Ic161109c07bf1b87839494ed4c4d5d31449d3ab6
CRs-Fixed: 3017691
2022-05-19 05:25:28 -07:00
qctecmdr
0ac811e7ab Merge "sepolicy_vndr:Adding new graphics libraries" 2022-05-18 11:28:55 -07:00
qctecmdr
10b71cfdd2 Merge "Revert for sepolicy for QC signing for ssg services" 2022-05-11 11:29:26 -07:00
Charles McGrath
bdeff5d3b3 Revert for sepolicy for QC signing for ssg services
Revert "Remove custom signing cert and rules"

   This reverts commit f2ea07094a.

Revert "sepolicy_vndr: Add sepolicy for ssg system service"

   This reverts commit bcb76b2ebc.

Change-Id: I91ad0e09954becddc164c1a969b32dddd8ac8d09
2022-05-09 17:59:46 -07:00
qctecmdr
38bdb8f5eb Merge "sepolicy: Add dac_read_search dontaudit exceptions" 2022-05-09 01:04:29 -07:00
Naman Jain
0ae2e49467 sepolicy_vndr: Allow getprop for persist.debug.trace property
Allow vendor init scripts to getprop persist.debug.trace property
to fix avc denial issues.

Change-Id: I739d8eb63d305b810af16dd2e31e5fead42037a7
2022-05-06 00:43:45 -07:00
Naveen Kumar Goud Arepalli
b2f45a1087 sepolicy: Add dac_read_search dontaudit exceptions
Add dac_read_search self capability for vendor_rfs
to avoid avc denial messages as below during bootup

AVC avc: denied { dac_read_search } for pid=2695 comm="tftp_server"
capability=2 scontext=u:r:vendor_rfs_access:s0
tcontext=u:r:vendor_rfs_access:s0 tclass=capability permissive=0

AVC avc: denied { dac_override } for pid=2695 comm="tftp_server"
capability=1 scontext=u:r:vendor_rfs_access:s0
tcontext=u:r:vendor_rfs_access:s0 tclass=capability permissive=0

Change-Id: I238c1cf4a89aaa7e07c4c6aa61df36ea8d881c56
2022-05-05 22:18:23 -07:00
Kranthi Kumar Kommalapati
03000f5344 sepolicy_vndr:Adding new graphics libraries
Adding new graphics libraries libkernelmanager.so and libkcl.so.

Change-Id: I6b02ed933d7e0c33453965c084928daac943333b
2022-05-02 10:29:54 -07:00
Naman Jain
d5cbbda6b0 vendor_modprobe: add new debugfs dir search permissions
Add dir search permissions in vendor_modprobe for new
debugfs labels debugfs_bootreceiver_tracing and debugfs_wifi_tracing.

Change-Id: I9f95cb0d623a5ebc80eb69cd135099f7b3b31085
2022-04-27 11:27:36 +05:30
qctecmdr
6c882d65bb Merge "sepolicy_vndr: Update context for /sys/class/kgsl/kgsl-3d0/perfcounter" 2022-04-20 13:26:57 -07:00
qctecmdr
d8ee5f04f1 Merge "sepolicy_vndr: Move qti-media file contexts to genfs" 2022-04-14 11:08:49 -07:00
Mohammed Mirza Mandayappurath Manzoor
8759fd85ec sepolicy_vndr: Update context for /sys/class/kgsl/kgsl-3d0/perfcounter
Shell permissions set in genfs_contexts for SELinux context applicable
for /sys/class/kgsl/kgsl-3d0/perfcounter is overridden if not set in
file_contexts.

Change-Id: I3eb818226abf497e1106af68ece9356bee0a3702
2022-04-11 11:10:07 -07:00
Priyanka Gujjula
24bc99f79d sepolicy_vndr: Move qti-media file contexts to genfs
[1] sku version file contexts are loaded by early-
init phase and sku version node is created after
file contexts are loaded. The transistion time
from early init to post-fs is around ~2.5 seconds.
avc denied messages are observed when sku_version
is accessed as vendor file contexts are slow in
reporting.
[2] Hence, move file contexts to genfs as genfs
helps to track and label the node even if the
node is created afterwards.

Change-Id: Idcdebf0dbc5a4e9e97bddc9a5f4e3151f6a97d8b
2022-04-03 18:15:55 -07:00
Sridhar Kasukurthi
c2fd5acf47 sepolicy_vndr: Add policy for atfwd client
Add policy for atfwd daemon client

Change-Id: I0251b892ffdfbd02ba16b3dc08998581b1c45015
CRs-Fixed: 3164800
2022-03-31 21:49:28 -07:00
qctecmdr
c01b7afc4b Merge "sepolicy: add sys_module capability for hal_wifi_default" 2022-03-07 21:47:49 -08:00
Hu Wang
75d1426dfe sepolicy: add sys_module capability for hal_wifi_default
When enable AP with wlan2, wifi@1.0-service needs to create wlan2
iface if it is not exists. An avc denied message arises that warns
wifi@1.0-service lacks sys_module capability, but finally wlan2
iface is still created.

Fix the avc denied message by adding sys_module capability for
hal_wifi_default.

CRs-Fixed: 3138698
Change-Id: I24fe42a77c135b9a11710c530904eec34e2b5daf
2022-03-04 15:04:53 +08:00
Rohit Soneta
24ced1be5a sepolicy: Add rule for TUI HAL to access allocator HAL
Change-Id: I5b8e24bb63f3b0d458772991928111b8abf289ad
2022-03-03 22:52:42 -08:00
Naman Jain
5ac9aa6834 sepolicy_vndr: Add sepolicy for ctl.vendor.console
Add property for ctl.vendor.console to fix avc denial issues, and
add permission for setprop.

Change-Id: I4e71c72f605ec8908eec2493d3c0ba1187aae1a4
2022-02-20 20:36:53 -08:00
Subash Abhinov Kasiviswanathan
87290b49ce rmnet: Update module related policies
Move all the netmgrd policies from qva to common.
Provide rmnet module sysfs read access to shsusrd.
Add the parameters belonging to all rmnet extended modules to rmnet context.

CRs-Fixed: 3134255
Change-Id: Icfa7965d8f3f2793ec0680db58c94146707652dd
2022-02-18 15:11:55 -07:00
Mohammed Mirza Mandayappurath Manzoor
985bbf7e34 sepolicy_vndr: Add shell permission to /sys/class/kgsl/kgsl-3d0/perfcounter
Allow shell users to have permission to update sysfs node
/sys/class/kgsl/kgsl-3d0/perfcounter

Change-Id: I648b7f4b25e4c8c1644be5046677f41e7b5d2f8c
2022-02-11 16:46:25 -08:00
Divyanand Rangu
40f5a66461 sepolicy: add labels to /sys/block/dev/sd*
Adding a new label to /sys/block/dev/sd*
Allow vendor_qti_init_shell to have permissions to
update read_ahead_kb nodes of
 - /sys/block/ram*
 - /sys/block/loop*
 - /sys/block/sd*
 - /sys/block/zram0

Change-Id: I123fb7608b95c33ec15b6c5ad3f1e7dd471c6853
2022-02-08 16:13:33 +05:30
Jun-Hyung Kwon
c7bbef3acc sepolicy_vndr: add debug property for sensors
add debug property for sensors and restrict the use of it
only with userdebug/eng build

Change-Id: I72ec219cead1b122467f6bcde69f05294503f3cb
2022-01-31 00:32:12 -08:00
Jaihind Yadav
584e36bb1e making qvr, sxr, rild,graphics hal binderservice.
CTS test is failing due to binder call permission issue for dumpstate.

Change-Id: I34cf54c03ed30a63644194d20b31eb4b77a2dc53
2022-01-28 05:56:54 -08:00
Ravi Kumar Siddojigari
989db96adb sepolicy_vndr: add kernel domain dir serach on debugfs_mmc
As the debugfs_mmc check is going to be done most of drivers
and will hit search denails .
So adding the permission to dir search .

Change-Id: I69751e34bcad90af9bfa4d98c89287258382fe7c
2022-01-20 21:13:02 -08:00
Jaihind Yadav
ea9aa9a0b9 sepoliy_vndr :labeling socid and granting the permission to the domains.
Soc_id and family are set to be global read .

Change-Id: I3f031918cec9aaec3cc626ec79d55cd64f190f69
2022-01-16 06:08:23 -08:00
qctecmdr
8c22a2faf8 Merge "Camera: Add permission to access XDSP" 2022-01-12 19:53:06 -08:00
qctecmdr
4db127d847 Merge "Neural Networks: Remove NNHAL-1.3 configuration" 2022-01-05 03:41:25 -08:00
Jaihind Yadav
a120840ed3 remove read permission for untrusted app to read device info.
Change-Id: I6d04b70ad23a08176ab9fa2c559460a4e6009efa
2021-12-28 23:19:53 -08:00
Anjaneya Prasad Musunuri
b1203c1f08 sepolicy_vndr: Suppress QMCS related denial errors in ENG builds
vold deamon tries to query the QMCS partition during bootup.
While this access is correctly denied, it results in errors.
For debug and ENG builds, suppress denial messages when the vold
context attempts to access the QMCS context.

Change-Id: Ibe9a153e5863ad13475bd777b221bbc8bbfb5893
2021-12-28 04:52:27 -08:00
Rajashekar Adi
b0b589b96c Neural Networks: Remove NNHAL-1.3 configuration
Remove NNHAL-1.3 configuration and references

Change-Id: I6041344fdd325151d78b78925de727146053463e
2021-12-22 22:37:13 +05:30
Suresh Koleti
3c8cf06dc8 Add IQtiRadio and IImsRadio in vendor
- Add IQtiRadio and IImsRadio in
  vendor_hal_telephony_service domain in vendor
  partition which is needed when GSI build is loaded.

Change-Id: I3a6d8a1486558db1622c2c447256024eed8773ae
CRs-Fixed: 3073450
2021-12-01 21:11:26 -08:00
Zube Molokwu
0be22d60ab sepolicy: Add sepolicy for IDisplayConfig AIDL
Adds sepolicy rule for IDisplayConfig AIDL in the case of GSI

Change-Id: I232839e30fc10f5dcc7195e1fbd59875e7947f25
2021-12-01 18:59:00 -08:00
qctecmdr
305c12bb23 Merge "qtidataservices_app : add getopt for udp socket" 2021-11-30 20:04:48 -08:00
Ramkumar Radhakrishnan
f8b50befef sepolicy: Add permission to access panel boot param node
Change-Id: Iad206bf924278d65cea4b35b107576e2442fae2a
2021-11-30 15:15:01 -08:00