diff --git a/private/domain.te b/private/domain.te index 46d3189130595d3ed35e332fceb001b74bde7c86..dff7957f01b810c04e302893cdf67608698d74e7 100644 --- a/private/domain.te +++ b/private/domain.te @@ -60,7 +60,7 @@ full_treble_only(` userdebug_or_eng(`-perfprofd') userdebug_or_eng(`-traced_probes') -shell - userdebug_or_eng(`-traceur_app') + -traceur_app } debugfs_tracing:file no_rw_file_perms; # inotifyfs diff --git a/private/statsd.te b/private/statsd.te index a51a547a8c702e7bb9a229e3dfa9488f54eeda9f..7221cba60b7b1a34234c906e7869b7b0216b1e14 100644 --- a/private/statsd.te +++ b/private/statsd.te @@ -86,7 +86,7 @@ neverallow { -statsd -system_app -system_server - userdebug_or_eng(`-traceur_app') + -traceur_app } stats_service:service_manager find; # Only statsd and the other root services in limited circumstances. diff --git a/private/traceur_app.te b/private/traceur_app.te index 539e8bc5b4a1a031fd5cc12ea62dd013f4347fea..e2d55f89e7a6801e367c7e0294d7b8cfedff903c 100644 --- a/private/traceur_app.te +++ b/private/traceur_app.te @@ -1,10 +1,12 @@ typeattribute traceur_app coredomain; +app_domain(traceur_app); +allow traceur_app debugfs_tracing:file rw_file_perms; + userdebug_or_eng(` - app_domain(traceur_app); - allow traceur_app debugfs_tracing:file rw_file_perms; allow traceur_app debugfs_tracing_debug:file rw_file_perms; - allow traceur_app trace_data_file:file create_file_perms; - allow traceur_app trace_data_file:dir { add_name getattr search write }; - allow traceur_app atrace_exec:file rx_file_perms; ') + +allow traceur_app trace_data_file:file create_file_perms; +allow traceur_app trace_data_file:dir { add_name getattr search write }; +allow traceur_app atrace_exec:file rx_file_perms; diff --git a/public/dumpstate.te b/public/dumpstate.te index 5f6e5f79c2dee9cedf2c0b8adca17aeae5fa17a8..9166deba856e23c17812b8a2b1d07dd3511efaae 100644 --- a/public/dumpstate.te +++ b/public/dumpstate.te @@ -283,6 +283,6 @@ neverallow { domain -system_server -shell - userdebug_or_eng(`-traceur_app') + -traceur_app -dumpstate } dumpstate_service:service_manager find; diff --git a/public/traceur_app.te b/public/traceur_app.te index 46826d48612919bd2c8194a72d2fff146f05c885..7113fa7ce9143d9e389100f402d0c625002cd99a 100644 --- a/public/traceur_app.te +++ b/public/traceur_app.te @@ -1,23 +1,21 @@ type traceur_app, domain; -userdebug_or_eng(` - allow traceur_app servicemanager:service_manager list; - allow traceur_app hwservicemanager:hwservice_manager list; +allow traceur_app servicemanager:service_manager list; +allow traceur_app hwservicemanager:hwservice_manager list; - set_prop(traceur_app, debug_prop) +set_prop(traceur_app, debug_prop) - allow traceur_app { - service_manager_type - -gatekeeper_service - -incident_service - -installd_service - -netd_service - -virtual_touchpad_service - -vold_service - -vr_hwc_service - }:service_manager find; +allow traceur_app { + service_manager_type + -gatekeeper_service + -incident_service + -installd_service + -netd_service + -virtual_touchpad_service + -vold_service + -vr_hwc_service +}:service_manager find; - dontaudit traceur_app service_manager_type:service_manager find; - dontaudit traceur_app hwservice_manager_type:hwservice_manager find; - dontaudit traceur_app domain:binder call; -') +dontaudit traceur_app service_manager_type:service_manager find; +dontaudit traceur_app hwservice_manager_type:hwservice_manager find; +dontaudit traceur_app domain:binder call;