-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TMP] Revert "begonia: sepolicy: Adapt to latest mtk common sepolicy"
This reverts commit f1a4198. Reason for revert: Don't break feb release
- Loading branch information
1 parent
644a870
commit 0afc4b6
Showing
16 changed files
with
42 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
# Camera | ||
type camera_vendor_data_file, file_type, data_file_type; | ||
|
||
# Fingerprint | ||
type fingerprint_data_file, file_type, data_file_type, core_data_file_type; | ||
type sysfs_spm, fs_type, sysfs_type; | ||
type vendor_fingerprint_data_file, file_type, data_file_type; | ||
|
||
# Display | ||
# Last kernel | ||
type proc_last_kmsg, fs_type, proc_type; | ||
|
||
type sysfs_light, fs_type, sysfs_type, mlstrustedobject; | ||
type sysfs_graphics, sysfs_type, fs_type, mlstrustedobject; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Last kernel | ||
genfscon proc /last_kmsg u:object_r:proc_last_kmsg:s0 | ||
|
||
# Leds | ||
genfscon sysfs /devices/platform/11016000.i2c5/i2c-5/5-0034/mt6360_pmu_rgbled.4.auto/leds u:object_r:sysfs_leds:s0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
allow hal_health_default sysfs:file rw_file_perms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
set_prop(hal_wifi_default, wlan_fw_prop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Purpose: Allow to init /proc/last_kmsg | ||
allow init proc_last_kmsg:file { r_file_perms setattr }; | ||
|
||
allow init hwservicemanager:binder call; | ||
|
||
allow init self:netlink_kobject_uevent_socket read; | ||
allow init sysfs_wake_lock:file r_file_perms; | ||
allow init same_process_hal_file:file execute; | ||
allow init vendor_data_file:file w_file_perms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
allow mtk_hal_camera camera_vendor_data_file:dir create_dir_perms; | ||
allow mtk_hal_camera camera_vendor_data_file:file create_file_perms; | ||
|
||
set_prop(mtk_hal_camera, vendor_mi_camera_prop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
vendor_restricted_prop(vendor_displayfeature_prop) | ||
vendor_restricted_prop(vendor_fp_prop) | ||
vendor_internal_prop(vendor_mi_camera_prop) | ||
vendor_public_prop(thermal_normal_prop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Last kernel | ||
allow system_server proc_last_kmsg:file r_file_perms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
get_prop(vendor_init, persist_atm_prop) | ||
|
||
allow vendor_init { fingerprint_data_file vendor_fingerprint_data_file }:dir { rw_dir_perms relabelto setattr }; |