Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update sepolicy for vhal #356

Open
wants to merge 1 commit into
base: celadon/u/mr0/master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions car/device.te
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type spidev_device, dev_type;
4 changes: 4 additions & 0 deletions car/file_contexts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
/(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.vehicle\.intel@2\.0-service u:object_r:hal_vehicle_default_exec:s0
/(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.vehicle\.intel@2\.1-service u:object_r:hal_vehicle_default_exec:s0

/(vendor|system/vendor)/bin/hw/android\.hardware\.automotive\.vehicle@intel-aidl-service u:object_r:hal_vehicle_default_exec:s0

/vendor/bin/hw/android.hardware.broadcastradio@intel-service u:object_r:hal_broadcastradio_default_exec:s0
/vendor/bin/hw/[email protected] u:object_r:hal_audiocontrol_default_exec:s0

/system/bin/evs_intel_app u:object_r:evs_intel_app_exec:s0
/system/bin/evs_app_support_lib u:object_r:evs_intel_app_exec:s0
/system/etc/automotive/evs(/.*)? u:object_r:evs_intel_app_files:s0

/dev/spidev0.0 u:object_r:spidev_device:s0
2 changes: 2 additions & 0 deletions car/hal_vehicle_default.te
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ allowxperm hal_vehicle_default self:can_socket ioctl {

ignore_adb_debug(`hal_vehicle_default')

allow hal_vehicle_default self:vsock_socket { create connect read write };
allow hal_vehicle_default spidev_device:chr_file { read write open ioctl };
allow hal_vehicle_default serial_device:chr_file rw_file_perms;
allow hal_vehicle_default sysfs_power:file rw_file_perms;
allow hal_evs_default gpu_device:dir { read open};
Expand Down