Add 'sepolicy/' from tag 'android-15.0.0_r1'

git-subtree-dir: sepolicy
git-subtree-mainline: 70dec708d5
git-subtree-split: 51a835795f
Change-Id: Ia74f63cba3abf532d2dd8b9425d9bc19157f9ac3
This commit is contained in:
Michael Bestas 2024-10-06 21:42:52 +03:00
commit 6d37e8206d
No known key found for this signature in database
GPG key ID: CC95044519BE6669
21 changed files with 59 additions and 0 deletions

4
sepolicy/OWNERS Normal file
View file

@ -0,0 +1,4 @@
include device/google/gs-common:/sepolicy/OWNERS
adamshih@google.com

View file

@ -0,0 +1,3 @@
# sepolicy that are shared among devices using whitechapel
BOARD_SEPOLICY_DIRS += device/google/pantah-sepolicy/cheetah

View file

@ -0,0 +1,2 @@
This folder holds sepolicy exclusively for one device. For example, genfs_contexts
paths that are affected by device tree.

View file

@ -0,0 +1 @@
allow vendor_cccdktimesync_app hal_bluetooth_coexistence_service:service_manager find;

3
sepolicy/cheetah/file.te Normal file
View file

@ -0,0 +1,3 @@
# BT
type vendor_bt_data_file, file_type, data_file_type;

View file

@ -0,0 +1,6 @@
# Bluetooth
/dev/ttySAC18 u:object_r:hci_attach_dev:s0
/dev/logbuffer_btlpm u:object_r:logbuffer_device:s0
/dev/logbuffer_tty18 u:object_r:logbuffer_device:s0
/data/vendor/bluetooth(/.*)? u:object_r:vendor_bt_data_file:s0

View file

@ -0,0 +1 @@
allow grilservice_app hal_bluetooth_coexistence_service:service_manager find;

View file

@ -0,0 +1,3 @@
allow hal_bluetooth_btlinux vendor_bt_data_file:dir rw_dir_perms;
allow hal_bluetooth_btlinux vendor_bt_data_file:file create_file_perms;

View file

@ -0,0 +1,3 @@
# sepolicy that are shared among devices using whitechapel
BOARD_SEPOLICY_DIRS += device/google/pantah-sepolicy/cloudripper

View file

@ -0,0 +1,2 @@
This folder holds sepolicy exclusively for one device. For example, genfs_contexts
paths that are affected by device tree.

View file

@ -0,0 +1,4 @@
# Bluetooth
/dev/ttySAC18 u:object_r:hci_attach_dev:s0
/dev/logbuffer_btlpm u:object_r:logbuffer_device:s0
/dev/logbuffer_tty18 u:object_r:logbuffer_device:s0

View file

@ -0,0 +1,2 @@
# Haptics
genfscon sysfs /devices/platform/10970000.hsi2c/i2c-8/8-0042 u:object_r:sysfs_vibrator:s0

View file

@ -0,0 +1,2 @@
# sepolicy that are shared among devices using whitechapel
BOARD_SEPOLICY_DIRS += device/google/pantah-sepolicy/panther

View file

@ -0,0 +1,2 @@
This folder holds sepolicy exclusively for one device. For example, genfs_contexts
paths that are affected by device tree.

3
sepolicy/panther/file.te Normal file
View file

@ -0,0 +1,3 @@
# BT
type vendor_bt_data_file, file_type, data_file_type;

View file

@ -0,0 +1,6 @@
# Bluetooth
/dev/ttySAC18 u:object_r:hci_attach_dev:s0
/dev/logbuffer_btlpm u:object_r:logbuffer_device:s0
/dev/logbuffer_tty18 u:object_r:logbuffer_device:s0
/data/vendor/bluetooth(/.*)? u:object_r:vendor_bt_data_file:s0

View file

@ -0,0 +1 @@
allow grilservice_app hal_bluetooth_coexistence_service:service_manager find;

View file

@ -0,0 +1,3 @@
allow hal_bluetooth_btlinux vendor_bt_data_file:dir rw_dir_perms;
allow hal_bluetooth_btlinux vendor_bt_data_file:file create_file_perms;

View file

@ -0,0 +1,2 @@
# sepolicy that are shared among devices using whitechapel
BOARD_SEPOLICY_DIRS += device/google/pantah-sepolicy/ravenclaw

View file

@ -0,0 +1,2 @@
This folder holds sepolicy exclusively for one device. For example, genfs_contexts
paths that are affected by device tree.

View file

@ -0,0 +1,4 @@
# Bluetooth
/dev/ttySAC18 u:object_r:hci_attach_dev:s0
/dev/logbuffer_btlpm u:object_r:logbuffer_device:s0
/dev/logbuffer_tty18 u:object_r:logbuffer_device:s0