Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
device_xiaomi_sm8350-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LMODroid-Devices
device_xiaomi_sm8350-common
Commits
5d25df15
Commit
5d25df15
authored
3 years ago
by
Erfan Abdi
Committed by
Arian
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
sm8350-common: sepolicy: Add mius rules
Change-Id: I4ebc9561ae7e0700c7937e615688b5b71b1a0a82
parent
124e1c32
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sepolicy/vendor/file_contexts
+4
-0
4 additions, 0 deletions
sepolicy/vendor/file_contexts
sepolicy/vendor/hal_sensors_default.te
+6
-0
6 additions, 0 deletions
sepolicy/vendor/hal_sensors_default.te
with
10 additions
and
0 deletions
sepolicy/vendor/file_contexts
+
4
−
0
View file @
5d25df15
# Audio
/dev/socket/audio_hw_socket u:object_r:audio_socket:s0
/dev/elliptic(.*)? u:object_r:sound_device:s0
/dev/mius(.*)? u:object_r:sound_device:s0
# Battery
/vendor/bin/batteryd u:object_r:batteryd_exec:s0
...
...
@@ -20,6 +21,9 @@
/vendor/bin/hw/vendor\.lineage\.powershare@1\.0-service\.xiaomi_sm8350 u:object_r:hal_lineage_powershare_default_exec:s0
# Sensors
/sys/bus/iio/devices u:object_r:vendor_sysfs_iio:s0
/sys/devices/platform/us_prox.0/iio:device1(/.*)? u:object_r:vendor_sysfs_iio:s0
/sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pmk8350@0:vadc@3100/iio:device0(/.*)? u:object_r:vendor_sysfs_iio:s0
/vendor/bin/hw/android\.hardware\.sensors@2.1-service\.xiaomi_sm8350-multihal u:object_r:hal_sensors_default_exec:s0
# Fingerprint
...
...
This diff is collapsed.
Click to expand it.
sepolicy/vendor/hal_sensors_default.te
+
6
−
0
View file @
5d25df15
type vendor_sysfs_iio, fs_type, sysfs_type;
allow hal_sensors_default audio_socket:sock_file rw_file_perms;
allow hal_sensors_default sound_device:chr_file rw_file_perms;
allow hal_sensors_default hal_audio_default:unix_stream_socket connectto;
allow hal_sensors_default iio_device:chr_file r_file_perms;
allow hal_sensors_default vendor_sysfs_iio:dir r_dir_perms;
allow hal_sensors_default vendor_sysfs_iio:file rw_file_perms;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment