Merge "kernel metrics: add selinux policy about modem_boot_duration for kernel metrics feature" into main
This commit is contained in:
commit
6e56542845
3 changed files with 6 additions and 0 deletions
2
modem/shared_modem_platform/sepolicy/file.te
Normal file
2
modem/shared_modem_platform/sepolicy/file.te
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Define the type which declare in genfs_contexts
|
||||
type sysfs_kernel_metrics, sysfs_type, fs_type;
|
1
modem/shared_modem_platform/sepolicy/genfs_contexts
Normal file
1
modem/shared_modem_platform/sepolicy/genfs_contexts
Normal file
|
@ -0,0 +1 @@
|
|||
genfscon sysfs /kernel/pixel_metrics/modem/modem_boot_duration u:object_r:sysfs_kernel_metrics:s0
|
|
@ -1,2 +1,5 @@
|
|||
# Shared modem platform will register the default instance of the AIDL ISharedModemPlatform hal.
|
||||
hal_server_domain(shared_modem_platform, hal_shared_modem_platform)
|
||||
|
||||
allow shared_modem_platform sysfs_kernel_metrics:file r_file_perms;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue