Merge "Allow system_server to read vendor_file"
am: 25b4eb217c
Change-Id: I78ecee68fdc8dadf62b0c3977f01a0571a1bdc1f
This commit is contained in:
commit
c38d803278
4 changed files with 18 additions and 0 deletions
|
@ -49,5 +49,8 @@
|
|||
timedetector_service
|
||||
timezonedetector_service
|
||||
uri_grants_service
|
||||
vendor_idc_file
|
||||
vendor_keychars_file
|
||||
vendor_keylayout_file
|
||||
vrflinger_vsync_service
|
||||
watchdogd_tmpfs))
|
||||
|
|
|
@ -349,6 +349,11 @@
|
|||
/(odm|vendor/odm)/overlay(/.*)? u:object_r:vendor_overlay_file:s0
|
||||
/(odm|vendor/odm)/framework(/.*)? u:object_r:vendor_framework_file:s0
|
||||
|
||||
# Input configuration
|
||||
/(odm|vendor)/usr/keylayout(/.*)?.kl u:object_r:vendor_keylayout_file:s0
|
||||
/(odm|vendor)/usr/keychars(/.*)?.kcm u:object_r:vendor_keychars_file:s0
|
||||
/(odm|vendor)/usr/idc(/.*)?.idc u:object_r:vendor_idc_file:s0
|
||||
|
||||
/oem(/.*)? u:object_r:oemfs:s0
|
||||
|
||||
# The precompiled monolithic sepolicy will be under /odm only when
|
||||
|
|
|
@ -352,6 +352,11 @@ allow system_server apk_data_file:{ file lnk_file } { create_file_perms link };
|
|||
allow system_server apk_tmp_file:dir create_dir_perms;
|
||||
allow system_server apk_tmp_file:file create_file_perms;
|
||||
|
||||
# Access input configuration files in the /vendor directory
|
||||
r_dir_file(system_server, vendor_keylayout_file)
|
||||
r_dir_file(system_server, vendor_keychars_file)
|
||||
r_dir_file(system_server, vendor_idc_file)
|
||||
|
||||
# Access /vendor/{app,framework,overlay}
|
||||
r_dir_file(system_server, vendor_app_file)
|
||||
r_dir_file(system_server, vendor_framework_file)
|
||||
|
|
|
@ -171,6 +171,11 @@ type vendor_overlay_file, vendor_file_type, file_type;
|
|||
# apps. ABI stability of these libs is vendor's responsibility.
|
||||
type vendor_public_lib_file, vendor_file_type, file_type;
|
||||
|
||||
# Input configuration
|
||||
type vendor_keylayout_file, vendor_file_type, file_type;
|
||||
type vendor_keychars_file, vendor_file_type, file_type;
|
||||
type vendor_idc_file, vendor_file_type, file_type;
|
||||
|
||||
# /metadata partition itself
|
||||
type metadata_file, file_type;
|
||||
# Vold files within /metadata
|
||||
|
|
Loading…
Reference in a new issue