Merge "sepolicy for vendor cgroups.json and task_profiles.json files"

am: e3f15e2abc

Change-Id: Icf12759a1b422f96dd74d634931720d43e363bec
This commit is contained in:
Suren Baghdasaryan 2019-03-01 10:09:12 -08:00 committed by android-build-merger
commit b582791324
6 changed files with 11 additions and 0 deletions

View file

@ -123,8 +123,10 @@
timezonedetector_service
uri_grants_service
use_memfd_prop
vendor_cgroup_desc_file
vendor_idc_file
vendor_keychars_file
vendor_keylayout_file
vendor_task_profiles_file
vrflinger_vsync_service
watchdogd_tmpfs))

View file

@ -32,6 +32,7 @@ allow { domain -appdomain -rs } cgroup:file w_file_perms;
allow domain cgroup_rc_file:dir search;
allow domain cgroup_rc_file:file r_file_perms;
allow domain task_profiles_file:file r_file_perms;
allow domain vendor_task_profiles_file:file r_file_perms;
# Allow all domains to read sys.use_memfd to determine
# if memfd support can be used if device supports it

View file

@ -336,6 +336,8 @@
/(vendor|system/vendor)/bin/toybox_vendor u:object_r:vendor_toolbox_exec:s0
/(vendor|system/vendor)/bin/toolbox u:object_r:vendor_toolbox_exec:s0
/(vendor|system/vendor)/etc(/.*)? u:object_r:vendor_configs_file:s0
/(vendor|system/vendor)/etc/cgroups\.json u:object_r:vendor_cgroup_desc_file:s0
/(vendor|system/vendor)/etc/task_profiles\.json u:object_r:vendor_task_profiles_file:s0
/(vendor|system/vendor)/lib(64)?/egl(/.*)? u:object_r:same_process_hal_file:s0

View file

@ -1037,6 +1037,7 @@ full_treble_only(`
-vendor_keylayout_file
-vendor_overlay_file
-vendor_public_lib_file
-vendor_task_profiles_file
-vndk_sp_file
}:file *;
')

View file

@ -158,8 +158,12 @@ type tcpdump_exec, system_file_type, exec_type, file_type;
type system_zoneinfo_file, system_file_type, file_type;
# Cgroups description file under /system/etc/cgroups.json
type cgroup_desc_file, system_file_type, file_type;
# Vendor cgroups description file under /vendor/etc/cgroups.json
type vendor_cgroup_desc_file, vendor_file_type, file_type;
# Task profiles file under /system/etc/task_profiles.json
type task_profiles_file, system_file_type, file_type;
# Vendor task profiles file under /vendor/etc/task_profiles.json
type vendor_task_profiles_file, vendor_file_type, file_type;
# Default type for directories search for
# HAL implementations

View file

@ -109,6 +109,7 @@ allow init cgroup:dir create_dir_perms;
allow init cgroup:file rw_file_perms;
allow init cgroup_rc_file:file rw_file_perms;
allow init cgroup_desc_file:file r_file_perms;
allow init vendor_cgroup_desc_file:file r_file_perms;
# /config
allow init configfs:dir mounton;