diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/device.mk | 2 | ||||
-rw-r--r-- | shared/sepolicy/vendor/file_contexts | 2 | ||||
-rw-r--r-- | shared/sepolicy/vendor/snapshot_hook.te | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/shared/device.mk b/shared/device.mk index ae77f41fb..54769c132 100644 --- a/shared/device.mk +++ b/shared/device.mk @@ -157,6 +157,8 @@ PRODUCT_PACKAGES += \ tombstone_producer \ suspend_blocker \ metrics_helper \ + snapshot_hook_post_resume \ + snapshot_hook_pre_suspend $(call soong_config_append,cvd,launch_configs,cvd_config_auto.json cvd_config_auto_portrait.json cvd_config_auto_md.json cvd_config_foldable.json cvd_config_go.json cvd_config_phone.json cvd_config_slim.json cvd_config_tablet.json cvd_config_tv.json cvd_config_wear.json) $(call soong_config_append,cvd,grub_config,grub.cfg) diff --git a/shared/sepolicy/vendor/file_contexts b/shared/sepolicy/vendor/file_contexts index ca19b929e..f5a5cbec0 100644 --- a/shared/sepolicy/vendor/file_contexts +++ b/shared/sepolicy/vendor/file_contexts @@ -115,6 +115,8 @@ /vendor/bin/hw/android\.hardware\.authsecret-service.example u:object_r:hal_authsecret_default_exec:s0 /vendor/bin/dlkm_loader u:object_r:dlkm_loader_exec:s0 /vendor/bin/init\.wifi u:object_r:init_wifi_sh_exec:s0 +/vendor/bin/snapshot_hook_post_resume u:object_r:snapshot_hook_sh:s0 +/vendor/bin/snapshot_hook_pre_suspend u:object_r:snapshot_hook_sh:s0 /vendor/lib(64)?/hw/android\.hardware\.health@2\.0-impl-2\.1-cuttlefish\.so u:object_r:same_process_hal_file:s0 /vendor/lib(64)?/libcuttlefish_fs.so u:object_r:same_process_hal_file:s0 diff --git a/shared/sepolicy/vendor/snapshot_hook.te b/shared/sepolicy/vendor/snapshot_hook.te new file mode 100644 index 000000000..03d9f75b1 --- /dev/null +++ b/shared/sepolicy/vendor/snapshot_hook.te @@ -0,0 +1,2 @@ +type snapshot_hook_sh, exec_type, vendor_file_type, file_type; +allow shell snapshot_hook_sh:file { getattr open read execute execute_no_trans }; |