Commit graph

3710 commits

Author SHA1 Message Date
Sudarshan Rajagopalan
7d6b065a9a sepolicy: move pasr sepolicy files to common
Since the new memory hal for pasr-v2 will also be used for other
targets that share the same Android image, move all the sepolicy
files to common folder to make it target independent.
Also, update memory pasr hal, psi_service and powerservice_app to
use the updated attributes.

Change-Id: I8978ce2bfff34a9b43d4eacc10f4b5076567768c
2021-01-19 17:20:04 -08:00
qctecmdr
d834ba305b Merge "sepolicy: Add labels and policies for mem-buf Virtual Machines" 2021-01-15 18:17:23 -08:00
qctecmdr
4da2b87e5b Merge "Add filecontext for Qti dumpstate 1.1 HAL." 2021-01-15 06:45:34 -08:00
P.Adarsh Reddy
e596a37934 Add filecontext for Qti dumpstate 1.1 HAL.
Change-Id: I26184a68000ce55d3fe4a7c155a64b18b72e23c9
2021-01-15 02:25:36 -08:00
Patrick Daly
518a9d9051 sepolicy: Add labels and policies for mem-buf Virtual Machines
Add the labels for our Virtual Machine devices.

Change-Id: Ieb8612e5ce6e67bdb53699ead3a3a59fa59b4820
2021-01-14 22:28:21 -08:00
Christopher Braga
16a54acf05 sepolicy_vndr: Introduce policies for new QMCS partition
A new display partition has been introduced on Lahaina family
targets. Update SELINUX policies to allow partition mounting,
unmounting, autoformatting, and read only access by
the graphics composer HAL.

Change-Id: Ia61df85566525fc1c24ab3dcd2130839286a3cd9
2021-01-14 17:02:29 -05:00
Zube Molokwu
260ade5b0b sepolicy: Add DMA-BUF heap policy for hal_graphics_allocator_default
Change-Id: I0ae3533b30a86a9654aca3c52cdeb7568e76209d
2021-01-12 11:15:03 -08:00
qctecmdr
3223d6a8ff Merge "sepolicy_vndr: vendor_modprobe: Add sepolicy rules to acccess proc_version" 2021-01-06 14:33:00 -08:00
qctecmdr
eeeb6de166 Merge "sepolicy: Add sepolicy rules for agm" 2021-01-06 01:46:58 -08:00
qctecmdr
c50d77eded Merge "sepolicy_vndr: sepolicy changes for PSM Feature" 2021-01-05 18:52:59 -08:00
qctecmdr
940154938d Merge "Fix compilation error" 2021-01-05 15:55:07 -08:00
Arun Mirpuri
21027d08d7 sepolicy: Add sepolicy rules for agm
Sepolicy rules for agm service

Change-Id: I686455b1e0cc95360dee60961eb443c79c4f6ebf

sepolicy: Add sepolicy changes for servreg.

agm service requires permissions to servreg
in order to communicate to libpdmapper and libpdlocator.

Change-Id: I613078aa731729476fcb31e160b32cb217966828

sepolicy: Add sepolicy rules for debugfs

Add sepolicy rules for AGM to access debugfs.

Change-Id: I5121c6af4954c50c9c15e132bd4a3da6a771f64e

add permissions to read properties

Change-Id: Ifbe016247386fb418b9e81cd3d44472b30e41863

sepolicy: Allow audio hal for wfd

Change-Id: I75a444ed937ed15645dffdf72d75ed18219c1b11

sepolicy: agm: Make agm service run in hal_audio domain

Change-Id: I503f07312bf898891f57ac28fbb03837958b5e72

sepolicy: add support for PAL hidl service

Use audiohal service context for PAL hidl service as PAL
service will run in context of the audio hal hidl process
context.

Change-Id: If518cf1eeab885f878712e4052895bc0aa8870eb
2021-01-05 16:44:30 +05:30
Divya Sharma
dfa64a01eb Fix compilation error
Change-Id: If55d926e37aba58040fd53315963081e8a31ce7d
2021-01-04 15:20:15 -08:00
zehugong
7e1ed00307 sepolicy_vndr: sepolicy changes for PSM Feature
Add properties setting support and Db support

Change-Id: I1f5cf02c29990deefc13616eed94c31113f7b30e
2021-01-03 21:50:21 -08:00
qctecmdr
33dac788b8 Merge "mwqem : initial sepolicy rules." 2020-12-29 10:16:38 -08:00
Ping Li
856e172e12 sepolicy: add sepolicy to open/read dmabuf heaps
Add sepolicy for display composer to open/read dmabuf heaps as LTM
needs to allocate dmabuf heaps for histogram buffer.

Change-Id: I7cc3cb022814da50895f0d7b2e4593a35f60899d
2020-12-25 14:57:11 -08:00
Jaihind Yadav
3e5717b207 setting the prebuilt path from vndr also.
As prebuilt path is not set while building vndr so it is unable to find the non_plat_sepolicy.cil
file for system_ext and product.

Change-Id: Id88b81ff75e3278d19bcff511c1b012c9b84a192
2020-12-23 21:39:07 -08:00
qctecmdr
fb0fe9c67b Merge "sepolicy: Introduce PIXEL and NON_PIXEL heaps, and drop secure display" 2020-12-23 10:09:15 -08:00
Elliot Berman
39715a6926 sepolicy_vndr: vendor_modprobe: Add sepolicy rules to acccess proc_version
Add rule to allow vendor_modprobe to access /proc/version.

Change-Id: Ia7e02d8734228e306bf3498dc8eb7814083ecba0
2020-12-22 14:46:39 -08:00
Luke Cesarz
ba93de3f30 Compilation fix
Change-Id: I5c48f1e407f8ab07d19994e408ec5510dedfa1c5
2020-12-22 12:25:46 -08:00
Soumil Shah
0ef9b16b1e Compilation fix
Change-Id: I2fbbc84dcce72febc48306ea0c4c51845da415be
2020-12-21 03:12:40 -08:00
Chris Goldsworthy
dec9374c3f sepolicy: Introduce PIXEL and NON_PIXEL heaps, and drop secure display
Introduce the labels for the CP_PIXEL and CP_NON_PIXEL heaps, and drop the
label for the secure display heap, as this heap is being merged into the secure
display heap.

Change-Id: Ia93b45308922ea40452caba3b45924f95f66c548
2020-12-17 17:05:13 -08:00
Siddharth Gupta
843f63ab2a generic: common: Add sepolicy for remoteproc nodes
Peripheral manager uses mdm helper to get details of the modem,
provide access to enable boot up of modem. This change sets the
appropriate sepolicy labels for remoteproc nodes for peripheral
manager to use.

Change-Id: Ifde86e7547327a137d6529f83a5f8704d6002d71
2020-12-16 17:00:38 -08:00
qctecmdr
bb346af179 Merge "sepolicy_vndr: Enable sepolicies needed for taro" 2020-12-15 16:11:20 -08:00
Manoj Basapathi
44d09cefc5 mwqem : initial sepolicy rules.
MWQEM enable dual link wifi data transfer by
efficient utilization of available channel capacity.
MWQEM enables UID specifc data transfer over two links.
"persist.vendor.mwqem.enable" property used to enable
and disable MWQEM feature.

Change-Id: I75f1327abdde9a0314d2091129121a33f1abb2a7
2020-12-14 16:30:50 +05:30
Chris Goldsworthy
e3042422d5 sepolicy: Add and correct DMA-BUF Heap labels
Add labels for newly-added heaps, and make updates for heaps whose
names have changed.

Change-Id: Ia278157969c61243a3c7c140ae3a394bcc7134af
2020-12-13 19:18:17 -08:00
Chris Goldsworthy
284f644eb9 sepolicy: Update the DMA-BUF heap labels
Change the name of the DMA-BUF heap labels.

Change-Id: Ia1f2894f06e99d31dca7554b55a8503bdefe1a92
2020-12-11 13:26:27 -08:00
Bruce Levy
d2b9b7f57f sepolicy_vndr: Enable sepolicies needed for taro
Change-Id: Ibcd30931e38a0a1722b74d16257845ffead2c2b8
2020-12-09 19:15:07 -08:00
haohuang
ea3cec8586 Allow location processes to create lnk_file
Allow location processes to create lnk_file
in vendor_location_socket path. These lnk_files
are used as the ALIAS of its mq_client socket.

Change-Id: I770ff1bbde1d4926b14e81eabd6e919e5e52102f
CRs-Fixed: 2781188
2020-11-25 10:31:23 -08:00
Linux Build Service Account
a705080537 Merge "Allow WiFi hal to create vendor_location socket file" into sepolicy.vndr.lnx.12.0 2020-11-25 10:21:26 -08:00
haohuang
4ae1c8c1dc Allow WiFi hal to create vendor_location socket file
Allow WiFi hal to create sock_file and lnk_file in
vendor_location_socket path.

Change-Id: I28812d325bdc5ada6a58ec6af9dd6ded6bb7a9cc
CRs-Fixed: 2820484
2020-11-23 21:25:42 -08:00
Shawn Shin
79dcef0e38 sepolicy:qcc-tr: add access to sdcard
qcc-tr need to store data to sdcard for userdebug or eng only

Change-Id: I296f0d91a64dd8677a442049f5988c8aaa64dbb0
2020-11-17 12:58:41 -08:00
Prerna Kalla
1c4d06bc05 sepolicy_vndr:: Rename keymaster service by adding vendor prefix
All vendor services should start with "vendor" prefix. Therefore,
renaming "keymaster-sb-4-0" to "vendor.keymaster-sb-4-0".

Change-Id: Ib534340e8171083452ea58542569ebcd589661c4
2020-11-05 23:20:19 -08:00
Sandeep Neerudu
a95910f9c2 sepolicy: allow sensors.qti to search SSR node folder
Change-Id: If810ad0313ebcf946aa4e91e2498d5a6433d7a24
2020-11-05 13:46:58 -08:00
qctecmdr
d2e3c0d979 Merge "sepolicy: Add labels and policies for dma-buf heaps" 2020-11-04 18:21:25 -08:00
qctecmdr
361340b532 Merge "sepolicy: Add label and property policies for vendor_confqmaa" 2020-11-04 16:23:27 -08:00
Chris Goldsworthy
1479fafc73 sepolicy: Add labels and policies for dma-buf heaps
Add the labels for our DMA-BUF heaps.  Add the policy that gives apps
access to our system heap, in line with how access to the built-in
system heap will be given to apps.

Change-Id: I2cffa38baf8893553e449259d0f6c2e2fb768991
2020-11-04 14:45:42 -08:00
Arthur Shuai
efbf87a103 sepolicy: Add label and property policies for vendor_confqmaa
Change-Id: Ia49da5ef8b04f64442e8b1c0b4a369d68fb951df
2020-11-02 03:09:09 -08:00
Prerna Kalla
98b14971cb sepolicy_vndr: Add sepolicy for keymaster init script
Allow keymaster init script to start keymaster stronbox and authsecret
service.
Test: Checked multiple boot ups on cedros and lahaina and no tombstones observed
from Keymaster or authsecret service.

Change-Id: I2ab22deb997b958f8641fe0482b227ee589b85f1
2020-11-01 22:34:55 -08:00
Siddeswar Aluganti
c518eea2da Fix compilation error.
Change-Id: Ib8dbd4f2446700825807b79c562f967eb2ca146e
2020-10-02 16:47:11 -07:00
qctecmdr
d375c37d19 Merge "sepolicy: allow KM/GK access to /dev/spss_utils" 2020-09-23 00:58:43 -07:00
qctecmdr
f204f5a9d3 Merge "sepolicy_vndr: allow access to perf_hal" 2020-09-22 19:05:56 -07:00
qctecmdr
50e6272286 Merge "vendor_init: allow tee_device with getattr" 2020-09-22 19:05:56 -07:00
Gaurav Kashyap
6b89333233 sepolicy: allow KM/GK access to /dev/spss_utils
Add a rule to allow gatekeeper and keymaster HAL
to access /dev/spss_utils (vendor_spss_utils_device).

Change-Id: I210598660e61c3149b2b5279ecd808a59b64cec0
2020-09-22 09:28:51 -07:00
qctecmdr
d18cc4e628 Merge "qva: Add sepolicy support for myftm service and IWifiMyFtm HAL." 2020-09-22 08:21:30 -07:00
qctecmdr
51e8a8e236 Merge "sepolicy_vndr: Add label for wakeup sources" 2020-09-22 08:21:30 -07:00
Linux Build Service Account
9d667f8364 Merge "sepolicy_vndr: Add permission for cnss-daemon to access kmsg node" into sepolicy.vndr.lnx.1.0 2020-09-22 04:06:26 -07:00
Anmolpreet Kaur
6a0b3b91c4 sepolicy_vndr : Add smcinvoke dev node as tee device
Add smcinvoke dev node as tee device in file_contexts.
This node has been moved from qssi to vendor for GSI
check.

Change-Id: I9ff2e94f8024f6b091afaa8e04381a3d808d9a2a
2020-09-21 22:27:44 -07:00
Linux Build Service Account
69545054f5 Merge "sepolicy: Allow init scripts to set PASR properties" into sepolicy.vndr.lnx.1.0 2020-09-21 11:36:52 -07:00
Linux Build Service Account
13d769c0ac Merge "shima: Add sepolicy rules for subsystem nodes" into sepolicy.vndr.lnx.1.0 2020-09-21 08:26:19 -07:00